authorgravatar for nmarks413@gmail.comNatalie Marks <nmarks413@gmail.com> 2025-04-19 10:35:31-07:00
committergravatar for nmarks413@gmail.comNatalie Marks <nmarks413@gmail.com> 2025-04-19 10:35:31-07:00
log7ffada5c7b5bf2ef4d15f9ef91415feaf65a19ef
tree9925e9e90097b8a30d7d6934af66699145caedfa
parente994781056b1537d2ab2e644323633de85cd1d8d
signature Commit is signed but in an unrecognized format.

get home manager working again


9 files changed, 16 insertions(+), 24 deletions(-)

flake.nix-9
......@@ -90,14 +90,5 @@
9090 inherit user;
9191 darwin = true;
9292 };
93 # darwinConfigurations = {
94 # "Natalies-MacBook-Air" = darwin.lib.darwinSystem {
95 # system = "aarch64-darwin";
96 # specialArgs = inputs;
97 # modules = [
98 # ./hosts/laptop/configuration.nix
99 # ];
100 # };
101 # };
10293 };
10394}
hosts/desktop/configuration.nix-1
......@@ -9,7 +9,6 @@
99 # Include the results of the hardware scan.
1010 ./hardware-configuration.nix
1111
12 ../../modules/shared/nix.nix
1312 ../../modules/nixos/nvidia.nix
1413 ../../modules/nixos/boot.nix
1514 ];
hosts/desktop/home.nix+1-1
......@@ -7,7 +7,7 @@
77 nix-options-search,
88 ...
99}: let
10 shared-programs = import ../shared/home-programs.nix {inherit config pkgs lib;};
10 shared-programs = import ../shared/home-programs.nix {inherit inputs config pkgs lib;};
1111in {
1212 home = {
1313 username = "nmarks";
hosts/laptop/configuration.nix+1-3
......@@ -1,13 +1,11 @@
11{
2 inputs,
23 config,
34 pkgs,
45 lib,
56 ...
67}: {
78 imports = [
8 ../../modules/shared/nix.nix
9 ../../modules/shared/extras.nix
10
119 ./modules/icons.nix
1210 ];
1311
hosts/laptop/home.nix+3-1
......@@ -1,12 +1,14 @@
11{
2 inputs,
23 config,
34 pkgs,
45 lib,
56 ...
67}: {
7 programs = import ../shared/home-programs.nix {inherit config pkgs lib;};
8 programs = import ../shared/home-programs.nix {inherit inputs config pkgs lib;};
89
910 home = {
11 homeDirectory = "/Users/nmarks/";
1012 # Home Manager needs a bit of information about you and the paths it should
1113 # manage.
1214 # This value determines the Home Manager release that your configuration is
hosts/shared/home-programs.nix+2-2
......@@ -1,9 +1,11 @@
11{
2 inputs,
23 config,
34 pkgs,
45 lib,
56 ...
67}: {
8 nix-index.enable = true;
79 atuin = {
810 enable = true;
911 enableBashIntegration = true;
......@@ -56,8 +58,6 @@
5658 };
5759 color_align = {
5860 mode = "horizontal";
59 # custom_colors = [];
60 # fore_back = null;
6161 };
6262 distro = "nixos";
6363 pride_month_shown = [
lib/mkSystem.nix+5-2
......@@ -28,6 +28,7 @@
2828 # The config files for this system.
2929
3030 hostConfig = ../hosts/${host}/configuration.nix;
31 homeConfig = ../hosts/${host}/home.nix;
3132
3233 # NixOS vs nix-darwin functions
3334 systemFunc =
......@@ -35,7 +36,7 @@
3536 then inputs.darwin.lib.darwinSystem
3637 else nixpkgs.lib.nixosSystem;
3738
38 home-manager =
39 hmModules =
3940 if darwin
4041 then inputs.home-manager.darwinModules
4142 else inputs.home-manager.nixosModules;
......@@ -58,13 +59,15 @@ in
5859
5960 hostConfig
6061 nixindex
61 home-manager.home-manager
62 {programs.nix-index-database.comma.enable = true;}
63 hmModules.home-manager
6264 {
6365 home-manager = {
6466 useGlobalPkgs = true;
6567 useUserPackages = true;
6668 backupFileExtension = "hm-backup";
6769 extraSpecialArgs = {inherit inputs;};
70 users.${user} = homeConfig;
6871 };
6972 }
7073
modules/shared/extras.nix-2
......@@ -6,6 +6,4 @@
66}: {
77 networking = {
88 };
9
10 inputs.programs.nix-index-database.comma.enable = true;
119}
modules/shared/nix.nix+4-3
......@@ -13,8 +13,11 @@
1313 warn-dirty = false
1414 '';
1515
16 optimise = {
17 automatic = true;
18 };
19
1620 settings = {
17 auto-optimise-store = true;
1821 experimental-features = ["nix-command" "flakes"];
1922 substituters = [
2023 "https://cache.nixos.org/?priority=10"
......@@ -31,8 +34,6 @@
3134 };
3235 gc = {
3336 automatic = true;
34 persistent = true;
35 dates = "weekly";
3637 options = "--delete-older-than 7d";
3738 };
3839 };