Browse Source

default.nix added

dev_01_initial
dev user 3 years ago
parent
commit
107d627d57
  1. 11
      flake.nix
  2. 36
      users/devvie/default.nix

11
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"
];
};
}

36
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; };
}
Loading…
Cancel
Save