add nixpkgs.hostplatform by default

This commit is contained in:
emily 2024-04-29 12:22:22 +02:00
parent 82604fd3d2
commit b76a613945
Signed by: emily
GPG key ID: F6F4C66207FCF995
7 changed files with 5 additions and 7 deletions

View file

@ -43,5 +43,7 @@ nixfiles
│   ├── hosts # configuration for specific hosts │   ├── hosts # configuration for specific hosts
│   ├── profiles # configuariotn for specific machine types │   ├── profiles # configuariotn for specific machine types
│   └── services # common service configuration │   └── services # common service configuration
└── modules # NixOS modules ├── lib # helper functions
├── modules # NixOS modules
└── pkgs # nixpkgs overlays
``` ```

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { config, lib, pkgs, ... }:
with lib; { with lib; {
imports = [ imports = [

View file

@ -34,7 +34,5 @@
# still possible to use this option, but it's recommended to use it in conjunction # still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
# networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
} }

View file

@ -20,6 +20,5 @@
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true; # networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wwp0s20f0u3.useDHCP = lib.mkDefault true; # networking.interfaces.wwp0s20f0u3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
#powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; #powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
} }

View file

@ -19,7 +19,6 @@
max-substitution-jobs = 20 max-substitution-jobs = 20
max-silent-time = 900 max-silent-time = 900
''; '';
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
systemd.network.networks."98-eth-default" = { systemd.network.networks."98-eth-default" = {
address = [ address = [

View file

@ -19,7 +19,6 @@
"2a0f:be01:0:100::1312/128" "2a0f:be01:0:100::1312/128"
]; ];
}; };
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
services.vyosBld = { services.vyosBld = {
enable = true; enable = true;
output = "/var/www/kyouma.net/vyos"; output = "/var/www/kyouma.net/vyos";

View file

@ -29,6 +29,7 @@
../../config/hosts/${hostname}/configuration.nix ../../config/hosts/${hostname}/configuration.nix
({ ... }: { ({ ... }: {
nixpkgs.overlays = [ self.overlays.kyouma ]; nixpkgs.overlays = [ self.overlays.kyouma ];
nixpkgs.hostPlatform = system;
}) })
]; ];
}; };