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:
parent
9986d416f8
commit
2558b35636
2 changed files with 14 additions and 16 deletions
26
flake.nix
26
flake.nix
|
@ -160,7 +160,15 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultConfiguration = host: with abstractions; systemConfiguration {
|
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 = {
|
nix.gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
|
@ -169,9 +177,11 @@
|
||||||
persistent = true;
|
persistent = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nix.nixPath = [ "nixpkgs=${nixpkgs}" ];
|
||||||
|
|
||||||
nix.optimise.automatic = true;
|
nix.optimise.automatic = true;
|
||||||
|
|
||||||
nix.nixPath = [ "nixpkgs=${nixpkgs}" ];
|
nix.package = upkgs.nixSuper;
|
||||||
|
|
||||||
nix.registry = {
|
nix.registry = {
|
||||||
nixpkgs.flake = nixpkgs;
|
nixpkgs.flake = nixpkgs;
|
||||||
|
@ -186,26 +196,16 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.settings.trusted-users = [ "root" "@wheel" ];
|
nix.settings.trusted-users = [ "root" "@wheel" ];
|
||||||
|
|
||||||
nix.settings.warn-dirty = false;
|
nix.settings.warn-dirty = false;
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
nixpkgs.overlays = [ fenix.overlays.default ];
|
nixpkgs.overlays = [ fenix.overlays.default ];
|
||||||
|
|
||||||
programs.nix-ld = enabled {};
|
programs.nix-ld = enabled {};
|
||||||
|
|
||||||
environment.defaultPackages = [];
|
|
||||||
|
|
||||||
boot.tmp.cleanOnBoot = true;
|
|
||||||
|
|
||||||
networking.hostName = host;
|
|
||||||
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
specialArgs = abstractions // {
|
specialArgs = abstractions // {
|
||||||
inherit upkgs ulib theme ghosttyModule;
|
inherit upkgs ulib theme;
|
||||||
};
|
};
|
||||||
|
|
||||||
importConfigurations = tools.recursiveUpdateMap (host: {
|
importConfigurations = tools.recursiveUpdateMap (host: {
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{ pkgs, upkgs, theme, homeConfiguration, enabled, ghosttyModule, ... }:
|
{ pkgs, upkgs, theme, homeConfiguration, enabled, ... }:
|
||||||
|
|
||||||
homeConfiguration "nixos" {
|
homeConfiguration "nixos" {
|
||||||
imports = [ ghosttyModule.homeModules.default ];
|
|
||||||
|
|
||||||
programs.nushell.environmentVariables.TERMINAL = "ghostty";
|
programs.nushell.environmentVariables.TERMINAL = "ghostty";
|
||||||
|
|
||||||
programs.ghostty = enabled {
|
programs.ghostty = enabled {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue