diff options
| -rw-r--r-- | hosts/c-pc/configuration.nix | 9 | ||||
| -rw-r--r-- | hosts/c-pc/home.nix | 2 | ||||
| -rw-r--r-- | snowfall/modules/nixos/system/impermanence/default.nix | 2 | ||||
| -rw-r--r-- | snowfall/modules/nixos/tools/bash/default.nix | 1 | ||||
| -rw-r--r-- | snowfall/systems/x86_64-linux/c-pc/default.nix | 2 | ||||
| -rw-r--r-- | snowfall/systems/x86_64-linux/c-pc/hardware.nix | 10 |
6 files changed, 7 insertions, 19 deletions
diff --git a/hosts/c-pc/configuration.nix b/hosts/c-pc/configuration.nix index eccae16..73fa648 100644 --- a/hosts/c-pc/configuration.nix +++ b/hosts/c-pc/configuration.nix @@ -8,8 +8,6 @@ ../../roles ]; - programs.fuse.userAllowOther = true; - users.users = { root.hashedPasswordFile = "/secrets/passwords/root"; @@ -20,13 +18,6 @@ }; }; - home-manager = { - extraSpecialArgs = { inherit inputs; }; - users = { - "c" = import ./home.nix; - }; - }; - services = { printing.enable = true; diff --git a/hosts/c-pc/home.nix b/hosts/c-pc/home.nix index 74ff894..9a95eae 100644 --- a/hosts/c-pc/home.nix +++ b/hosts/c-pc/home.nix @@ -15,8 +15,6 @@ allowOther = true; directories = [ - "code" - ".local/bin" ".local/share/applications" diff --git a/snowfall/modules/nixos/system/impermanence/default.nix b/snowfall/modules/nixos/system/impermanence/default.nix index cf3f697..c7c86d8 100644 --- a/snowfall/modules/nixos/system/impermanence/default.nix +++ b/snowfall/modules/nixos/system/impermanence/default.nix @@ -8,6 +8,8 @@ in { }; config = mkIf cfg.enable { + programs.fuse.userAllowOther = true; + environment.persistence."/persist/system" = { hideMounts = true; diff --git a/snowfall/modules/nixos/tools/bash/default.nix b/snowfall/modules/nixos/tools/bash/default.nix index 7d5499c..180db1f 100644 --- a/snowfall/modules/nixos/tools/bash/default.nix +++ b/snowfall/modules/nixos/tools/bash/default.nix @@ -10,7 +10,6 @@ in { config = mkIf cfg.enable { environment.localBinInPath = true; - #TODO: add c="codium ." alias programs.bash = { shellAliases = { lsa = "ls -lAsh"; diff --git a/snowfall/systems/x86_64-linux/c-pc/default.nix b/snowfall/systems/x86_64-linux/c-pc/default.nix index e1a025d..5b98fc1 100644 --- a/snowfall/systems/x86_64-linux/c-pc/default.nix +++ b/snowfall/systems/x86_64-linux/c-pc/default.nix @@ -27,7 +27,7 @@ with lib; with lib.${namespace}; { apps.i3 = { videoDrivers = [ "amdgpu" ]; - #TODO: move to services.autorandr + #TODO: migrate to services.autorandr setupCommands = '' if ${pkgs.xorg.xrandr}/bin/xrandr --query | grep 2560x1080; then ${pkgs.xorg.xrandr}/bin/xrandr --output DVI-D-0 --mode 1920x1080 --rate 60 --pos 0x0 diff --git a/snowfall/systems/x86_64-linux/c-pc/hardware.nix b/snowfall/systems/x86_64-linux/c-pc/hardware.nix index d60d964..8f7f8cd 100644 --- a/snowfall/systems/x86_64-linux/c-pc/hardware.nix +++ b/snowfall/systems/x86_64-linux/c-pc/hardware.nix @@ -1,10 +1,6 @@ { config, lib, pkgs, modulesPath, ... }: { - imports = [ - (modulesPath + "/installer/scan/not-detected.nix") - ]; - boot = { loader.grub = { enable = true; @@ -55,6 +51,8 @@ swapDevices = [ ]; - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware.enableRedistributableFirmware = true; + hardware.cpu.amd.updateMicrocode = true; + + nixpkgs.hostPlatform = "x86_64-linux"; } |