Moved config to Flakes

This commit is contained in:
2025-05-14 16:02:42 -04:00
parent 1088ad6403
commit f8b66e1eba
4 changed files with 153 additions and 31 deletions

View File

@@ -4,14 +4,10 @@
{ config, pkgs, lib, ... }:
let
home-manager = builtins.fetchTarball https://github.com/nix-community/home-manager/archive/master.tar.gz;
in
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
(import "${home-manager}/nixos")
];
# Bootloader.
@@ -122,31 +118,12 @@ in
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Enable NUR
nixpkgs.config.packageOverrides = pkgs: {
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/main.tar.gz") {
inherit pkgs;
};
};
# Home Manager
home-manager.useGlobalPkgs = true;
home-manager.backupFileExtension = "backup";
# Define a user account. Don't forget to set a password with passwd.
users.users.chase = {
isNormalUser = true;
description = "Chase";
extraGroups = [ "networkmanager" "wheel" ];
};
home-manager.users.chase = { pkgs, ... }: {
imports = [
/etc/nixos/home.nix
];
# Original install
home.stateVersion = "24.11";
};
# Install firefox.
programs.firefox = {