Change external to ISO, the most likely way I'll use it
This commit is contained in:
parent
e221d22463
commit
d2769c314a
11 changed files with 37 additions and 147 deletions
21
hosts/iso/default.nix
Normal file
21
hosts/iso/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./filesystems
|
||||
./hardware
|
||||
./users
|
||||
../../modules/system
|
||||
];
|
||||
|
||||
networking = {
|
||||
hostName = "extern";
|
||||
wireguard.interfaces.wgc.ips = [ "10.100.0.21/24" ];
|
||||
};
|
||||
|
||||
system = {
|
||||
desktop.enable = true;
|
||||
wireless.enable = true;
|
||||
wireguard.client.enable = true;
|
||||
stateVersion = "24.11";
|
||||
};
|
||||
}
|
11
hosts/iso/filesystems/default.nix
Normal file
11
hosts/iso/filesystems/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
fileSystems = {
|
||||
# Network mounts
|
||||
"/home/${config.sysusers.main}/KittyNFS" = {
|
||||
device = "10.100.0.1:/export/KittyNFS";
|
||||
fsType = "nfs4";
|
||||
options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ];
|
||||
};
|
||||
};
|
||||
}
|
11
hosts/iso/hardware/default.nix
Normal file
11
hosts/iso/hardware/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ config, lib, modulesPath, ... }:
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")
|
||||
(modulesPath + "/installer/cd-dvd/channel.nix")
|
||||
];
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
4
hosts/iso/users/default.nix
Normal file
4
hosts/iso/users/default.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [ ./main ];
|
||||
}
|
10
hosts/iso/users/main/default.nix
Normal file
10
hosts/iso/users/main/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
home-manager.users."${config.sysusers.main}" = {
|
||||
home = {
|
||||
desktop.enable = true;
|
||||
remote-desktop.enable = true;
|
||||
stateVersion = lib.mkForce "24.11";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue