test iso
This commit is contained in:
35
modules/features/networking.nix
Normal file
35
modules/features/networking.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ ... }: {
|
||||
|
||||
flake.nixosModules.static-eth = { config, lib, ... }: {
|
||||
|
||||
networking = {
|
||||
interfaces.eno1 = {
|
||||
ipv4.addresses = [{
|
||||
address = "192.0.2.2";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
};
|
||||
|
||||
defaultGateway = {
|
||||
address = "192.0.2.1";
|
||||
interface = "eno1";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
flake.nixosModules.static-wl = { config, lib, ... }: {
|
||||
|
||||
networking = {
|
||||
interfaces.wlo1 = {
|
||||
ipv4.addresses = [{
|
||||
address = "192.0.3.2";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
};
|
||||
defaultGateway = {
|
||||
address = "192.0.3.1";
|
||||
interface = "wlo1";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -37,6 +37,15 @@
|
||||
];
|
||||
};
|
||||
|
||||
environment.etc."wallpaper.jpg".source = ./../../users/nathan/home-manager/dotfiles/Wallpaper/bluescape.jpg;
|
||||
|
||||
system.activationScripts."wallpaperInit" = {
|
||||
text = ''
|
||||
mkdir -p /tmp/aurora/wallpaper
|
||||
cp /etc/wallpaper.jpg /tmp/aurora/wallpaper/wallpaper.jpg
|
||||
'';
|
||||
};
|
||||
|
||||
users.users.nixos.enable = lib.mkForce false;
|
||||
|
||||
networking = {
|
||||
|
||||
Reference in New Issue
Block a user