From a2f761d5ef0e367ac407e9b719e2345ae632b45c Mon Sep 17 00:00:00 2001 From: harry Date: Sat, 12 Oct 2024 22:11:54 +0200 Subject: [PATCH 1/3] small update to proxmox image --- .gitignore | 2 +- hosts/dionysos/configuration.nix | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1cd791b..b2be92b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -result/ +result diff --git a/hosts/dionysos/configuration.nix b/hosts/dionysos/configuration.nix index cb3f10a..bdd3af2 100644 --- a/hosts/dionysos/configuration.nix +++ b/hosts/dionysos/configuration.nix @@ -1,4 +1,9 @@ -{ config, pkgs, ... }: +{ + config, + pkgs, + username, + ... +}: { environment.systemPackages = with pkgs; [ weechat @@ -10,4 +15,17 @@ enable = true; clock24 = true; }; + + system.stateVersion = "24.05"; + + users.users.${username} = { + isNormalUser = true; + + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA8sdToNavEQv7PTMJ97HIGM6UlChwGS3x9O8hFilzui harryh@ik.me" + ]; + }; + + users.users.${username}.initialHashedPassword = "$y$j9T$s4isXqWcg4N8TEPjmj0fD/$zog2cpUwstnvwDnQsFmH3br/WAeD2Uu/L7ePr00cKkA"; + environment.variables.EDITOR = "nvim"; } From d35814cc6a7fc284ac6b7ead11d7fca66af4bea1 Mon Sep 17 00:00:00 2001 From: harry Date: Sat, 12 Oct 2024 22:21:23 +0200 Subject: [PATCH 2/3] tried fixing config --- flake.nix | 6 ++++++ hosts/dionysos/configuration.nix | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index f9c00de..c5d9ff8 100644 --- a/flake.nix +++ b/flake.nix @@ -96,6 +96,12 @@ inherit specialArgs; }; modules = [ + ( + { ... }: + { + nix.registry.nixpkgs.flake = nixpkgs; + } + ) ./hosts/dionysos/configuration.nix ]; format = "proxmox"; diff --git a/hosts/dionysos/configuration.nix b/hosts/dionysos/configuration.nix index bdd3af2..56a94e0 100644 --- a/hosts/dionysos/configuration.nix +++ b/hosts/dionysos/configuration.nix @@ -1,9 +1,11 @@ { config, pkgs, - username, ... }: +let + username = "harry123"; +in { environment.systemPackages = with pkgs; [ weechat From a1a4943664eee94898bb8cd34fd00e097db3808b Mon Sep 17 00:00:00 2001 From: harry Date: Thu, 17 Oct 2024 10:33:14 +0200 Subject: [PATCH 3/3] fixed typo --- flake.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/flake.nix b/flake.nix index c5d9ff8..31867e3 100644 --- a/flake.nix +++ b/flake.nix @@ -64,6 +64,16 @@ ]; }; + dionysos = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + specialArgs = { + inherit specialArgs; + }; + modules = [ + + ./hosts/dionysos/configuration.nix + ]; + }; }; isos = {