diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 41 |
1 files changed, 23 insertions, 18 deletions
@@ -5,14 +5,15 @@ rec { nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; - sops-nix = { url = "github:Mic92/sops-nix" ; inputs.nixpkgs.follows = "nixpkgs"; }; - home-manager = { url = "github:nix-community/home-manager/release-26.05" ; inputs.nixpkgs.follows = "nixpkgs"; }; arkenfox = { url = "github:dwarfmaster/arkenfox-nixos" ; inputs.nixpkgs.follows = "nixpkgs"; }; - reposync = { url = "git://git.tjkeller.xyz/hm-reposync" ; inputs.nixpkgs.follows = "nixpkgs"; }; - open-bamboo = { url = "git://git.tjkeller.xyz/open-bamboo-network-plugin-flake" ; inputs.nixpkgs.follows = "nixpkgs"; }; - neovim-vanilla = { url = "git://git.tjkeller.xyz/neovim-vanilla-wrapped" ; inputs.nixpkgs.follows = "nixpkgs"; }; - ff-userchrome = { url = "git://git.tjkeller.xyz/firefox-chrome" ; inputs.nixpkgs.follows = "nixpkgs"; }; + helium = { url = "github:AlvaroParker/helium-nix" ; inputs.nixpkgs.follows = "nixpkgs"; }; + home-manager = { url = "github:nix-community/home-manager/release-26.05" ; inputs.nixpkgs.follows = "nixpkgs"; }; + sops-nix = { url = "github:Mic92/sops-nix" ; inputs.nixpkgs.follows = "nixpkgs"; }; embedtube = { url = "git://git.tjkeller.xyz/embedtube" ; inputs.nixpkgs.follows = "nixpkgs"; }; + ff-userchrome = { url = "git://git.tjkeller.xyz/firefox-chrome" ; inputs.nixpkgs.follows = "nixpkgs"; }; + neovim-vanilla = { url = "git://git.tjkeller.xyz/neovim-vanilla-wrapped" ; inputs.nixpkgs.follows = "nixpkgs"; }; + open-bamboo = { url = "git://git.tjkeller.xyz/open-bamboo-network-plugin-flake" ; inputs.nixpkgs.follows = "nixpkgs"; }; + reposync = { url = "git://git.tjkeller.xyz/hm-reposync" ; inputs.nixpkgs.follows = "nixpkgs"; }; telemetry = { url = "git://git.tjkeller.xyz/telemetry-flake" ; inputs.nixpkgs.follows = "nixpkgs"; }; }; @@ -60,26 +61,28 @@ rec { }) hostsBySystem.${system} ) (builtins.attrNames hostsBySystem) ); - mkHomeConfiguration = user: system: hostname: home-manager.lib.homeManagerConfiguration { + mkHomeConfiguration = userName: system: hostname: home-manager.lib.homeManagerConfiguration { pkgs = nixpkgs.legacyPackages.${system}; extraSpecialArgs = { inherit inputs; lib = extLibHomeManagerStandalone; }; modules = homeManagerModules ++ [ - ./hosts/${hostname}/home-${user}/configuration.nix + ./hosts/${hostname}/home-${userName}/configuration.nix ./archetypes/profiles ./pkgs ./users/default-home.nix ]; }; - mkHomeConfigurations = hostsBySystem: builtins.listToAttrs ( - builtins.concatMap (system: - map (host: { - name = host; - value = mkHomeConfiguration "timmy" system host; # TODO - }) hostsBySystem.${system} - ) (builtins.attrNames hostsBySystem) + mkHomeConfigurations = hostsByUser: builtins.listToAttrs ( + builtins.concatMap (userName: + builtins.concatMap (system: + map (host: { + name = "${host}-${userName}"; + value = mkHomeConfiguration userName system host; + }) hostsByUser.${userName}.${system} + ) (builtins.attrNames hostsByUser.${userName}) + ) (builtins.attrNames hostsByUser) ); in { # Configured system hostnames go here under their respective system architecture @@ -101,9 +104,11 @@ rec { ]; }; homeConfigurations = mkHomeConfigurations { - x86_64-linux = [ - "libreX60" - ]; + timmy = { + x86_64-linux = [ + "libreX60" + ]; + }; }; }; } |
