use network manager

move hardware settings to one file
This commit is contained in:
Christoph Cullmann 2024-07-04 18:44:40 +02:00
parent 57345466b2
commit 0624de4676
No known key found for this signature in database
7 changed files with 12 additions and 18 deletions

View file

@ -14,16 +14,10 @@
/data/nixos/common.nix /data/nixos/common.nix
]; ];
# amd graphics
hardware.graphics.extraPackages = with pkgs; [ amdvlk rocm-opencl-icd rocm-opencl-runtime ];
# our hostname and an ID for ZFS # our hostname and an ID for ZFS
networking.hostName = "beta"; networking.hostName = "beta";
networking.hostId = "3f20def9"; networking.hostId = "3f20def9";
# classic dhcpcd
networking.networkmanager.enable = false;
# german laptop keyboard # german laptop keyboard
services.xserver.xkb.layout = "de"; services.xserver.xkb.layout = "de";
} }

View file

@ -19,4 +19,7 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# amd graphics
hardware.graphics.extraPackages = with pkgs; [ amdvlk rocm-opencl-icd rocm-opencl-runtime ];
} }

View file

@ -149,6 +149,9 @@ in
# allow all firmware # allow all firmware
hardware.enableAllFirmware = true; hardware.enableAllFirmware = true;
# use NetworkManager, works well for WiFi, too
networking.networkmanager.enable = true;
# ensure firewall is up, allow ssh in # ensure firewall is up, allow ssh in
networking.firewall.enable = true; networking.firewall.enable = true;
networking.firewall.allowedTCPPorts = [ 22 ]; networking.firewall.allowedTCPPorts = [ 22 ];

View file

@ -14,16 +14,10 @@
/data/nixos/common.nix /data/nixos/common.nix
]; ];
# amd graphics
hardware.graphics.extraPackages = with pkgs; [ amdvlk rocm-opencl-icd rocm-opencl-runtime ];
# our hostname and an ID for ZFS # our hostname and an ID for ZFS
networking.hostName = "mini"; networking.hostName = "mini";
networking.hostId = "e925ccfb"; networking.hostId = "e925ccfb";
# classic dhcpcd
networking.networkmanager.enable = false;
# EurKey layout # EurKey layout
services.xserver.xkb.layout = "eu"; services.xserver.xkb.layout = "eu";
} }

View file

@ -26,4 +26,7 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# amd graphics
hardware.graphics.extraPackages = with pkgs; [ amdvlk rocm-opencl-icd rocm-opencl-runtime ];
} }

View file

@ -14,16 +14,10 @@
/data/nixos/common.nix /data/nixos/common.nix
]; ];
# intel graphics
hardware.graphics.extraPackages = with pkgs; [ intel-media-driver intel-compute-runtime ];
# our hostname and an ID for ZFS # our hostname and an ID for ZFS
networking.hostName = "neko"; networking.hostName = "neko";
networking.hostId = "cf5a5ee6"; networking.hostId = "cf5a5ee6";
# classic dhcpcd
networking.networkmanager.enable = false;
# EurKey layout # EurKey layout
services.xserver.xkb.layout = "eu"; services.xserver.xkb.layout = "eu";
} }

View file

@ -33,4 +33,7 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# intel graphics
hardware.graphics.extraPackages = with pkgs; [ intel-media-driver intel-compute-runtime ];
} }