diff options
author | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-07-31 14:45:24 +0000 |
---|---|---|
committer | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-07-31 14:45:24 +0000 |
commit | 8fecc5f5924c9a56ee4ee034d74cd8af3efd5fee (patch) | |
tree | 0e862d2bd9029ca9d02ae0c2dff7ddf5da83fb0c /nixos/configuration.nix | |
parent | f10f6922fb9ea8b2535e97549a92cdf2d5cee08e (diff) | |
download | nixos-configuration-8fecc5f5924c9a56ee4ee034d74cd8af3efd5fee.tar.gz nixos-configuration-8fecc5f5924c9a56ee4ee034d74cd8af3efd5fee.tar.bz2 nixos-configuration-8fecc5f5924c9a56ee4ee034d74cd8af3efd5fee.zip |
feat: inherited Nvidia configuration from old conf
Diffstat (limited to 'nixos/configuration.nix')
-rw-r--r-- | nixos/configuration.nix | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/nixos/configuration.nix b/nixos/configuration.nix index bbcc3f8..2690c28 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -8,15 +8,11 @@ ... }: let -myHostName = "homelab-nix"; -stevenUserName = "stvnliu"; + globals = import ./globals.nix; in { imports = [ -#inputs.hardware.nixosModules.common-cpu-amd -#inputs.hardware.nixosModules.common-ssd ./hardware-configuration.nix - ./services/display-manager.nix ]; boot.loader = { efi.canTouchEfiVariables = true; @@ -36,6 +32,12 @@ in ''; }; }; + security.polkit.enable = true; + services.gnome.gnome-keyring.enable = true; + programs.sway = { + enable = true; + wrapperFeatures.gtk = true; + }; nixpkgs = { overlays = [ ]; @@ -56,20 +58,18 @@ in nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs; }; networking = { - hostName = "${myHostName}"; + hostName = "${globals.myHostName}"; networkmanager.enable = true; }; users.users = { - "${stevenUserName}" = { + "${globals.myUserName}" = { initialPassword = "stevenpassword"; isNormalUser = true; openssh.authorizedKeys.keys = [ ]; packages = with pkgs; [ - nh - neovim - gitFull - ]; + nh + ]; extraGroups = ["wheel"]; }; }; |