get home manager working again

This commit is contained in:
Natalie 2025-04-19 10:35:31 -07:00
parent e994781056
commit 7ffada5c7b
No known key found for this signature in database
GPG key ID: 61F4EAEB0C9C3D5F
9 changed files with 16 additions and 24 deletions

View file

@ -90,14 +90,5 @@
inherit user; inherit user;
darwin = true; darwin = true;
}; };
# darwinConfigurations = {
# "Natalies-MacBook-Air" = darwin.lib.darwinSystem {
# system = "aarch64-darwin";
# specialArgs = inputs;
# modules = [
# ./hosts/laptop/configuration.nix
# ];
# };
# };
}; };
} }

View file

@ -9,7 +9,6 @@
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
../../modules/shared/nix.nix
../../modules/nixos/nvidia.nix ../../modules/nixos/nvidia.nix
../../modules/nixos/boot.nix ../../modules/nixos/boot.nix
]; ];

View file

@ -7,7 +7,7 @@
nix-options-search, nix-options-search,
... ...
}: let }: let
shared-programs = import ../shared/home-programs.nix {inherit config pkgs lib;}; shared-programs = import ../shared/home-programs.nix {inherit inputs config pkgs lib;};
in { in {
home = { home = {
username = "nmarks"; username = "nmarks";

View file

@ -1,13 +1,11 @@
{ {
inputs,
config, config,
pkgs, pkgs,
lib, lib,
... ...
}: { }: {
imports = [ imports = [
../../modules/shared/nix.nix
../../modules/shared/extras.nix
./modules/icons.nix ./modules/icons.nix
]; ];

View file

@ -1,12 +1,14 @@
{ {
inputs,
config, config,
pkgs, pkgs,
lib, lib,
... ...
}: { }: {
programs = import ../shared/home-programs.nix {inherit config pkgs lib;}; programs = import ../shared/home-programs.nix {inherit inputs config pkgs lib;};
home = { home = {
homeDirectory = "/Users/nmarks/";
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should
# manage. # manage.
# This value determines the Home Manager release that your configuration is # This value determines the Home Manager release that your configuration is

View file

@ -1,9 +1,11 @@
{ {
inputs,
config, config,
pkgs, pkgs,
lib, lib,
... ...
}: { }: {
nix-index.enable = true;
atuin = { atuin = {
enable = true; enable = true;
enableBashIntegration = true; enableBashIntegration = true;
@ -56,8 +58,6 @@
}; };
color_align = { color_align = {
mode = "horizontal"; mode = "horizontal";
# custom_colors = [];
# fore_back = null;
}; };
distro = "nixos"; distro = "nixos";
pride_month_shown = [ pride_month_shown = [

View file

@ -28,6 +28,7 @@
# The config files for this system. # The config files for this system.
hostConfig = ../hosts/${host}/configuration.nix; hostConfig = ../hosts/${host}/configuration.nix;
homeConfig = ../hosts/${host}/home.nix;
# NixOS vs nix-darwin functions # NixOS vs nix-darwin functions
systemFunc = systemFunc =
@ -35,7 +36,7 @@
then inputs.darwin.lib.darwinSystem then inputs.darwin.lib.darwinSystem
else nixpkgs.lib.nixosSystem; else nixpkgs.lib.nixosSystem;
home-manager = hmModules =
if darwin if darwin
then inputs.home-manager.darwinModules then inputs.home-manager.darwinModules
else inputs.home-manager.nixosModules; else inputs.home-manager.nixosModules;
@ -58,13 +59,15 @@ in
hostConfig hostConfig
nixindex nixindex
home-manager.home-manager {programs.nix-index-database.comma.enable = true;}
hmModules.home-manager
{ {
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
backupFileExtension = "hm-backup"; backupFileExtension = "hm-backup";
extraSpecialArgs = {inherit inputs;}; extraSpecialArgs = {inherit inputs;};
users.${user} = homeConfig;
}; };
} }

View file

@ -6,6 +6,4 @@
}: { }: {
networking = { networking = {
}; };
inputs.programs.nix-index-database.comma.enable = true;
} }

View file

@ -13,8 +13,11 @@
warn-dirty = false warn-dirty = false
''; '';
optimise = {
automatic = true;
};
settings = { settings = {
auto-optimise-store = true;
experimental-features = ["nix-command" "flakes"]; experimental-features = ["nix-command" "flakes"];
substituters = [ substituters = [
"https://cache.nixos.org/?priority=10" "https://cache.nixos.org/?priority=10"
@ -31,8 +34,6 @@
}; };
gc = { gc = {
automatic = true; automatic = true;
persistent = true;
dates = "weekly";
options = "--delete-older-than 7d"; options = "--delete-older-than 7d";
}; };
}; };