diff options
Diffstat (limited to 'nixos/configuration.nix')
-rw-r--r-- | nixos/configuration.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/nixos/configuration.nix b/nixos/configuration.nix new file mode 100644 index 0000000..be8e03f --- /dev/null +++ b/nixos/configuration.nix @@ -0,0 +1,51 @@ +{ + inputs, + outputs, + pkgs, + ... +}: { + imports = [ + ./desktop + ./hardware.nix + ./impermanence.nix + ./locale.nix + ./nix.nix + ./user.nix + inputs.home-manager.nixosModules.home-manager + ]; + + nixpkgs = { + overlays = [ + outputs.overlays.additions + outputs.overlays.modifications + outputs.overlays.master-packages + inputs.nur.overlay + ]; + config = { + allowUnfree = true; + }; + }; + + home-manager = { + backupFileExtension = "bak"; + extraSpecialArgs = {inherit inputs outputs;}; + users.chen = import ../home-manager/home.nix; + }; + + networking = { + hostName = "nixosvm"; + networkmanager.enable = true; + firewall.enable = true; + }; + + environment.systemPackages = with pkgs; [ + git + htop + wget + ]; + + services.ntp.enable = true; + security.sudo.execWheelOnly = true; + + system.stateVersion = "24.11"; +} |