changed up

This commit is contained in:
Bryan Ramos 2024-05-09 11:56:25 -04:00
parent 1d170da221
commit 6a06793716
3 changed files with 11 additions and 17 deletions

View file

@ -22,10 +22,10 @@
allowUnfree = true; allowUnfree = true;
}; };
}; };
config = import ./user.config.nix;
in in
{ {
import = ./user.configs.nix;
nixosConfigurations = { nixosConfigurations = {
desktop = nixpkgs.lib.nixosSystem { desktop = nixpkgs.lib.nixosSystem {
inherit system pkgs; inherit system pkgs;
@ -56,6 +56,9 @@
]; ];
}; };
}; };
homeConfigurations = import ./src/system/machines/nix-less; homeConfigurations."bryan" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./src/system/machines/nix-less ];
};
}; };
} }

View file

@ -1,9 +1,7 @@
{ config, pkgs, home-manager, ... }: { ... }:
{ {
imports = [ ../../../user ]; imports = [
"${config.user.name}" = home-manager.lib.homeManagerConfiguration { ./home.nix
inherit pkgs; ];
modules = [ ./home.nix ];
};
} }

View file

@ -9,14 +9,14 @@
homeDirectory = "/home/${config.user.name}"; homeDirectory = "/home/${config.user.name}";
file.".config/home-manager" = { file.".config/home-manager" = {
source = ../../../../../nixos; source = ../../../..;
recursive = true; recursive = true;
}; };
}; };
programs.home-manager.enable = true; programs.home-manager.enable = true;
programs.bash.shellAliases = { programs.bash.shellAliases = {
nixup = "home-manager switch"; nixup = "home-manager switch --flake";
}; };
nix = { nix = {
@ -26,11 +26,6 @@
auto-optimise-store = true; auto-optimise-store = true;
trusted-users = [ "${config.user.name}" ]; trusted-users = [ "${config.user.name}" ];
}; };
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
}; };
modules = { modules = {
user = { user = {
@ -42,8 +37,6 @@
alacritty.enable = true; alacritty.enable = true;
browsers.enable = true; browsers.enable = true;
neovim.enable = true; neovim.enable = true;
}; };
utils = { utils = {
enable = true; enable = true;