diff --git a/flake.lock b/flake.lock index e5ce253..c1b84dd 100644 --- a/flake.lock +++ b/flake.lock @@ -77,6 +77,42 @@ "url": "https://git.hypervirtual.world/harry123/nix-secrets.git" } }, + "nixlib": { + "locked": { + "lastModified": 1728176478, + "narHash": "sha256-px3Q0W//c+mZ4kPMXq4poztsjtXM1Ja1rN+825YMDUQ=", + "owner": "nix-community", + "repo": "nixpkgs.lib", + "rev": "b61309c3c1b6013d36299bc8285612865b3b9e4c", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixpkgs.lib", + "type": "github" + } + }, + "nixos-generators": { + "inputs": { + "nixlib": "nixlib", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1728522165, + "narHash": "sha256-UQpsJ0Ev6JBGsCYRlS2oOVvb+eWcDD0xTV3RVlqbeVU=", + "owner": "nix-community", + "repo": "nixos-generators", + "rev": "40c8d30c490414910fc63626ad1b67af7db40cd3", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixos-generators", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1723688146, @@ -129,6 +165,7 @@ "inputs": { "alejandra": "alejandra", "nix-secrets": "nix-secrets", + "nixos-generators": "nixos-generators", "nixpkgs": "nixpkgs", "sops-nix": "sops-nix" } diff --git a/flake.nix b/flake.nix index ecc7c95..f9c00de 100644 --- a/flake.nix +++ b/flake.nix @@ -24,6 +24,7 @@ self, nixpkgs, sops-nix, + nixos-generators, ... }@inputs: let @@ -87,6 +88,18 @@ ]; format = "proxmox"; }; + + dionysos = nixos-generators.nixosGenerate { + system = "x86_64-linux"; + specialArgs = { + diskSize = 20 * 1024; + inherit specialArgs; + }; + modules = [ + ./hosts/dionysos/configuration.nix + ]; + format = "proxmox"; + }; }; }; } diff --git a/hosts/dionysos/configuration.nix b/hosts/dionysos/configuration.nix new file mode 100644 index 0000000..cb3f10a --- /dev/null +++ b/hosts/dionysos/configuration.nix @@ -0,0 +1,13 @@ +{ config, pkgs, ... }: +{ + environment.systemPackages = with pkgs; [ + weechat + tmux + ]; + + services.weechat.enable = true; + programs.tmux = { + enable = true; + clock24 = true; + }; +}