diff --git a/flake.nix b/flake.nix index 5191648..0f80bd4 100644 --- a/flake.nix +++ b/flake.nix @@ -90,5 +90,21 @@ } ]; }; + nixosConfigurations.nixos-test-vm = nixpkgs.lib.nixosSystem { + inherit system pkgs; + modules = [ + networking.hostName = "nixos-test-vm"; + ./systems/proxmox-vm/configuration.nix + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.${username} = import ./home-manager/headless.nix + { + inherit inputs system pkgs; + }; + } + ]; + }; }; } diff --git a/home-manager/headless.nix b/home-manager/headless.nix new file mode 100644 index 0000000..c88093f --- /dev/null +++ b/home-manager/headless.nix @@ -0,0 +1,18 @@ +{ pkgs, ... }: +{ + imports = [ + ./common + ./software/git + ./software/vim + ]; + + programs.git.userEmail = "andreas@zweili.ch"; + + programs.bash = { + enable = true; + shellAliases = { + management-server = "mosh --ssh='ssh -p 22' andreas@10.7.89.106 tmux a"; + }; + }; + +} diff --git a/systems/proxmox-vm/configuration.nix b/systems/proxmox-vm/configuration.nix index 80fd1bc..958a898 100644 --- a/systems/proxmox-vm/configuration.nix +++ b/systems/proxmox-vm/configuration.nix @@ -4,12 +4,11 @@ imports = [ # Include the results of the hardware scan. - ../../modules/desktop.nix + ../../modules/common.nix ./hardware-configuration.nix ]; networking = { - hostName = "nixos-test-vm"; interfaces.enp0s18.useDHCP = true; }; }