forked from emily/nixfiles
add nixpkgs.hostplatform by default
This commit is contained in:
parent
82604fd3d2
commit
b76a613945
7 changed files with 5 additions and 7 deletions
|
@ -43,5 +43,7 @@ nixfiles
|
|||
│ ├── hosts # configuration for specific hosts
|
||||
│ ├── profiles # configuariotn for specific machine types
|
||||
│ └── services # common service configuration
|
||||
└── modules # NixOS modules
|
||||
├── lib # helper functions
|
||||
├── modules # NixOS modules
|
||||
└── pkgs # nixpkgs overlays
|
||||
```
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib; {
|
||||
imports = [
|
||||
|
|
|
@ -34,7 +34,5 @@
|
|||
# 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`.
|
||||
# networking.interfaces.enp1s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
}
|
||||
|
||||
|
|
|
@ -20,6 +20,5 @@
|
|||
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wwp0s20f0u3.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
#powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
}
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
max-substitution-jobs = 20
|
||||
max-silent-time = 900
|
||||
'';
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
||||
systemd.network.networks."98-eth-default" = {
|
||||
address = [
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
"2a0f:be01:0:100::1312/128"
|
||||
];
|
||||
};
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
services.vyosBld = {
|
||||
enable = true;
|
||||
output = "/var/www/kyouma.net/vyos";
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
../../config/hosts/${hostname}/configuration.nix
|
||||
({ ... }: {
|
||||
nixpkgs.overlays = [ self.overlays.kyouma ];
|
||||
nixpkgs.hostPlatform = system;
|
||||
})
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue