diff --git a/modules/hosts.nix b/modules/hosts.nix index d944610..6f19c89 100644 --- a/modules/hosts.nix +++ b/modules/hosts.nix @@ -1,5 +1,9 @@ { + # desktop pc den.hosts.x86_64-linux.flock.users.igneous = { }; + # framework 16 laptop den.hosts.x86_64-linux.perch.users.igneous = { }; - den.hosts.x86_64-linux.roost.users.igneous = { }; + + # OVHcloud VPS + den.hosts.x86_64-linux.roost.users.catbird = { }; } diff --git a/modules/hosts/roost/roost.nix b/modules/hosts/roost/roost.nix index 955e63d..860221a 100644 --- a/modules/hosts/roost/roost.nix +++ b/modules/hosts/roost/roost.nix @@ -4,6 +4,25 @@ (den.batteries.hostname) ]; + nixos = { + imports = [ ./_hardware-configuration.nix ]; + system.stateVersion = "25.11"; + + # Use the GRUB 2 boot loader + boot.loader.grub.enable = true; + boot.loader.grub.efiSupport = true; + boot.loader.grub.efiInstallAsRemovable = true; + # boot.loader.efi.efiSysMountPoint = "/boot/efi"; + # Define on which hard drive you want to install Grub. + boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only + + # todo: openssh aspect + services.openssh.enable = true; + users.users.root.openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINjHG2fiK7Ip1YlPdH/eyT1qIrtOJlHUeMZ13GZvWyGI" + ]; + }; + provides.to-users.homeManager = { pkgs, ... }: { diff --git a/modules/users/catbird.nix b/modules/users/catbird.nix new file mode 100644 index 0000000..57c5c60 --- /dev/null +++ b/modules/users/catbird.nix @@ -0,0 +1,32 @@ +{ den, ... }: +{ + den.aspects.catbird = { + includes = with den.aspects; [ + den.batteries.define-user + den.batteries.primary-user + + git + nixvim + shell + shell.bash + shell.zsh + ]; + + homeManager = + { pkgs, ... }: + { + home.packages = with pkgs; [ + jq + man-pages + man-pages-posix + nixd + nixfmt + tree + ]; + }; + + provides.to-hosts.nixos = { + environment.pathsToLink = [ "/share/zsh" ]; + }; + }; +}