feat: add host PABU
This commit is contained in:
parent
2982447d51
commit
53271d1d4c
2 changed files with 43 additions and 0 deletions
|
|
@ -44,6 +44,7 @@
|
||||||
"APPA"
|
"APPA"
|
||||||
"IROH"
|
"IROH"
|
||||||
"MOMO"
|
"MOMO"
|
||||||
|
"PABU"
|
||||||
"T430"
|
"T430"
|
||||||
] mkSystem
|
] mkSystem
|
||||||
);
|
);
|
||||||
|
|
|
||||||
42
hosts/PABU/default.nix
Normal file
42
hosts/PABU/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
{ lib, pkgs, modulesPath, ... }: {
|
||||||
|
imports = [ (modulesPath + "/profiles/minimal.nix") ];
|
||||||
|
|
||||||
|
# Installing a new system within the nspawn means that the /sbin/init script
|
||||||
|
# just needs to be updated, as there is no bootloader.
|
||||||
|
system.build.installBootLoader = pkgs.writeScript "install-sbin-init.sh" ''
|
||||||
|
#!${pkgs.runtimeShell}
|
||||||
|
${pkgs.coreutils}/bin/ln -fs "$1/init" /sbin/init
|
||||||
|
'';
|
||||||
|
|
||||||
|
system.activationScripts.installInitScript = lib.mkForce ''
|
||||||
|
${pkgs.coreutils}/bin/ln -fs $systemConfig/init /sbin/init
|
||||||
|
'';
|
||||||
|
|
||||||
|
boot.isContainer = true;
|
||||||
|
networking.hostName = "PABU";
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
settings = {
|
||||||
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
auto-optimise-store = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
users.groups.gandalf = {
|
||||||
|
gid = 1000;
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.gandalf = {
|
||||||
|
isNormalUser = true;
|
||||||
|
home = "/home/gandalf";
|
||||||
|
createHome = true;
|
||||||
|
group = "gandalf";
|
||||||
|
extraGroups = [ "wheel" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
security.sudo.wheelNeedsPassword = false;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [ git neovim ];
|
||||||
|
|
||||||
|
system.stateVersion = "24.05";
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue