1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 19:47:47 +00:00

Use proper home manager setting for home modules

This commit is contained in:
RGBCube 2023-12-07 15:42:16 +03:00
parent 9986d416f8
commit 2558b35636
No known key found for this signature in database
2 changed files with 14 additions and 16 deletions

View file

@ -160,7 +160,15 @@
};
defaultConfiguration = host: with abstractions; systemConfiguration {
nix.package = upkgs.nixSuper;
boot.tmp.cleanOnBoot = true;
environment.defaultPackages = [];
home-manager.sharedModules = [ ghosttyModule.homeModules.default ];
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
networking.hostName = host;
nix.gc = {
automatic = true;
@ -169,9 +177,11 @@
persistent = true;
};
nix.nixPath = [ "nixpkgs=${nixpkgs}" ];
nix.optimise.automatic = true;
nix.nixPath = [ "nixpkgs=${nixpkgs}" ];
nix.package = upkgs.nixSuper;
nix.registry = {
nixpkgs.flake = nixpkgs;
@ -186,26 +196,16 @@
];
nix.settings.trusted-users = [ "root" "@wheel" ];
nix.settings.warn-dirty = false;
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [ fenix.overlays.default ];
programs.nix-ld = enabled {};
environment.defaultPackages = [];
boot.tmp.cleanOnBoot = true;
networking.hostName = host;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
};
specialArgs = abstractions // {
inherit upkgs ulib theme ghosttyModule;
inherit upkgs ulib theme;
};
importConfigurations = tools.recursiveUpdateMap (host: {

View file

@ -1,8 +1,6 @@
{ pkgs, upkgs, theme, homeConfiguration, enabled, ghosttyModule, ... }:
{ pkgs, upkgs, theme, homeConfiguration, enabled, ... }:
homeConfiguration "nixos" {
imports = [ ghosttyModule.homeModules.default ];
programs.nushell.environmentVariables.TERMINAL = "ghostty";
programs.ghostty = enabled {