diff options
Diffstat (limited to '')
-rw-r--r-- | flake.nix | 12 | ||||
-rw-r--r-- | home-manager/default.nix | 49 | ||||
-rw-r--r-- | home-manager/gtk/default.nix | 2 | ||||
-rw-r--r-- | home-manager/home.nix | 24 | ||||
-rw-r--r-- | hosts/desktop/configuration.nix | 4 | ||||
-rw-r--r-- | system/default.nix | 1 |
6 files changed, 68 insertions, 24 deletions
diff --git a/flake.nix b/flake.nix index f2038dad..7514aeca 100644 --- a/flake.nix +++ b/flake.nix @@ -24,12 +24,12 @@ nixosConfigurations.Tiamat = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = inputs; - modules = [./hosts/desktop/configuration.nix]; - }; - nixosConfigurations.Apzu = nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; - specialArgs = inputs; - modules = [./hosts/laptop/configuration.nix]; + modules = [./hosts/desktop/configuration.nix (import ./home-manager/home.nix {})]; }; + # nixosConfigurations.Apzu = nixpkgs.lib.nixosSystem { + # system = "x86_64-linux"; + # specialArgs = inputs; + # modules = [./hosts/laptop/configuration.nix]; + # }; }; } diff --git a/home-manager/default.nix b/home-manager/default.nix index 54c29872..e6983ee4 100644 --- a/home-manager/default.nix +++ b/home-manager/default.nix @@ -5,26 +5,45 @@ home-manager, inputs, ... -}: { +}: let + # TODO actually use this in the user config + username = "soispha"; + homeDirectory = "/srv/home/${username}"; + configHome = "${homeDirectory}/.config"; +in { imports = [ home-manager.nixosModules.home-manager - ./alacritty - ./cups - ./firefox - ./gammastep - ./git - ./grades - ./gtk - ./keepassxc - ./latexindent - ./less - ./lf - ./mako - ./mpd + ./alacritty + ./cups + ./firefox + ./gammastep + ./git + ./grades + ./gtk + ./keepassxc + ./latexindent + ./less + ./lf + ./mako + ./mpd ]; home-manager.users.soispha = { - home.packages = []; + home = { + inherit username homeDirectory; + stateVersion = "23.05"; + + # TODO + sessionVariables = { + DISPLAY = ":0"; + EDITOR = "nvim"; + }; + packages = []; + }; + xdg = { + inherit configHome; + enable = true; + }; }; } diff --git a/home-manager/gtk/default.nix b/home-manager/gtk/default.nix index d72986d5..52393231 100644 --- a/home-manager/gtk/default.nix +++ b/home-manager/gtk/default.nix @@ -1,6 +1,8 @@ { config, + lib, pkgs, + stdenv, ... }: { home-manager.gkt = { diff --git a/home-manager/home.nix b/home-manager/home.nix new file mode 100644 index 00000000..574d3623 --- /dev/null +++ b/home-manager/home.nix @@ -0,0 +1,24 @@ +{ + home-manager, + pkgs, + ... +}: let + imports = [ +#homeage.homeManagerModules.homeage +#neovim-flake.nixosModules.${system}.hm + ./default.nix + ]; + + mkHome = _: ( + home-manager.lib.homeManagerConfiguration { + inherit pkgs; + + extraSpecialArgs = { + }; + + modules = [{inherit imports;}]; + } + ); +in { + home = mkHome {}; +} diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index 2a3812cf..c58d1a47 100644 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -5,13 +5,11 @@ nixpkgs, home-manager, ... -}: { +}:{ imports = [ ./hardware ./networking.nix - ../../home-manager - ../../system ../../services diff --git a/system/default.nix b/system/default.nix index 81949ce4..73f53119 100644 --- a/system/default.nix +++ b/system/default.nix @@ -7,4 +7,5 @@ ./packages ./sound ]; + } |