diff --git a/flake.nix b/flake.nix index bee38d3..5fb323c 100644 --- a/flake.nix +++ b/flake.nix @@ -4,6 +4,7 @@ inputs = { # Flake inputs agenix.url = "github:ryantm/agenix"; + flake-parts.url = "github:hercules-ci/flake-parts"; home.url = "github:nix-community/home-manager"; # Nixpkgs branches @@ -20,7 +21,7 @@ nix.inputs.nixpkgs.follows = "nixpkgs"; }; - outputs = { self, home, nixpkgs, ... }@inputs: + outputs = { self, home, nixpkgs, flake-parts, ... }@inputs: let config = { allowBroken = false; @@ -83,13 +84,5 @@ nixConfig = { commit-lockfile-summary = "flake: bump inputs"; - - substituters = [ - "https://cache.nixos.org?priority=10" - "https://cache.ngi0.nixos.org/" - "https://nix-community.cachix.org?priority=5" - "https://nixpkgs-wayland.cachix.org" - "https://fortuneteller2k.cachix.org" - ]; }; } diff --git a/users/devvie/default.nix b/users/devvie/default.nix new file mode 100644 index 0000000..f60ca44 --- /dev/null +++ b/users/devvie/default.nix @@ -0,0 +1,36 @@ +{ config, nixpkgs, home, overlays, inputs }: + +# See https://github.com/nix-community/home-manager/blob/master/flake.nix#L44 for reference. +let + system = "x86_64-linux"; +in +home.lib.homeManagerConfiguration { + modules = [ + { + nixpkgs = { inherit config overlays; }; + + home = rec { + username = "hblobner"; + homeDirectory = "/home/${username}"; + + /* + NOTE: DO NOT CHANGE THIS IF YOU DON'T KNOW WHAT YOU'RE DOING. + + Only change this if you are ABSOLUTELY 100% SURE that you don't have stateful data. + */ + stateVersion = "21.11"; + }; + } + + # Extra home-manager modules that aren't upstream + + # Shared configuration across all users + ../shared/home.nix + + # Particular configuration for the user + ./home.nix + ]; + + # Extra arguments passed to home.nix + extraSpecialArgs = { inherit inputs system; }; +}