From fee9256b3907f1c8c782584a893d881f76223826 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sun, 8 Dec 2024 12:45:06 -0600 Subject: [PATCH] WIP --- nixos/configuration.nix => configuration.nix | 4 ++++ flake.nix | 3 +++ home-manager/default.nix | 9 +++++++++ {nixos => nixosModules/services}/loki.nix | 0 {nixos => nixosModules}/vscode/flake.nix | 0 5 files changed, 16 insertions(+) rename nixos/configuration.nix => configuration.nix (95%) create mode 100644 home-manager/default.nix rename {nixos => nixosModules/services}/loki.nix (100%) rename {nixos => nixosModules}/vscode/flake.nix (100%) diff --git a/nixos/configuration.nix b/configuration.nix similarity index 95% rename from nixos/configuration.nix rename to configuration.nix index 5e1500b..e837b14 100644 --- a/nixos/configuration.nix +++ b/configuration.nix @@ -11,6 +11,10 @@ eza ]; + # imports = [ + # ./ + # ]; + # For SSH access services.openssh.enable = true; diff --git a/flake.nix b/flake.nix index ddf4a67..b83076a 100644 --- a/flake.nix +++ b/flake.nix @@ -56,6 +56,9 @@ }; }; + homeManagerModules.default = ./homeManagerModules; + nixosModules.default = ./nixosModules; + # Standalone home-manager configuration entrypoint # Available through 'home-manager --flake .#your-username@your-hostname' homeConfigurations = { diff --git a/home-manager/default.nix b/home-manager/default.nix new file mode 100644 index 0000000..9cc4bfd --- /dev/null +++ b/home-manager/default.nix @@ -0,0 +1,9 @@ +{ user, repoPath, ... }: +{ + programs.home-manager.enable = true; + home = { + stateVersion = "24.05"; + username = "${user}"; + homeDirectory = "${repoPath}"; + }; +} \ No newline at end of file diff --git a/nixos/loki.nix b/nixosModules/services/loki.nix similarity index 100% rename from nixos/loki.nix rename to nixosModules/services/loki.nix diff --git a/nixos/vscode/flake.nix b/nixosModules/vscode/flake.nix similarity index 100% rename from nixos/vscode/flake.nix rename to nixosModules/vscode/flake.nix