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;
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.
./hardware-configuration.nix
../../modules/shared/nix.nix
../../modules/nixos/nvidia.nix
../../modules/nixos/boot.nix
];

View file

@ -7,7 +7,7 @@
nix-options-search,
...
}: 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 {
home = {
username = "nmarks";

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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