get home manager working again
This commit is contained in:
parent
e994781056
commit
7ffada5c7b
9 changed files with 16 additions and 24 deletions
|
@ -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
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 = [
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,4 @@
|
||||||
}: {
|
}: {
|
||||||
networking = {
|
networking = {
|
||||||
};
|
};
|
||||||
|
|
||||||
inputs.programs.nix-index-database.comma.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue