switch to home-manager module
This commit is contained in:
parent
fc4f825cc3
commit
f0529eed85
19
flake.nix
19
flake.nix
|
@ -26,17 +26,16 @@
|
||||||
./hosts/common
|
./hosts/common
|
||||||
./hosts/earth
|
./hosts/earth
|
||||||
# universe
|
# universe
|
||||||
];
|
inputs.home-manager.nixosModules.home-manager
|
||||||
};
|
{
|
||||||
|
home-manager = {
|
||||||
homeConfigurations.tx0 = inputs.home-manager.lib.homeManagerConfiguration {
|
useGlobalPkgs = true;
|
||||||
pkgs = import inputs.nixpkgs {
|
useUserPackages = true;
|
||||||
inherit system;
|
backupFileExtension = "hm-old";
|
||||||
};
|
users.tx0 = import ./home;
|
||||||
extraSpecialArgs = {inherit system inputs u;};
|
extraSpecialArgs = {inherit system inputs u;};
|
||||||
modules = [
|
};
|
||||||
./home
|
}
|
||||||
./universe.nix
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,14 +1,10 @@
|
||||||
{
|
{config, ...}: {
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home = {
|
home = {
|
||||||
username = "tx0";
|
username = "tx0";
|
||||||
homeDirectory = "/home/tx0";
|
homeDirectory = "/home/tx0";
|
||||||
stateVersion = "24.11";
|
stateVersion = "24.11";
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
EDITOR = "${config.home.homeDirectory}/.nix-profile/bin/nvim";
|
EDITOR = "nvim";
|
||||||
HYPRSHOT_DIR = "${config.home.homeDirectory}/Pictures/Screenshots/";
|
HYPRSHOT_DIR = "${config.home.homeDirectory}/Pictures/Screenshots/";
|
||||||
FLAKE = "${config.home.homeDirectory}/universe/";
|
FLAKE = "${config.home.homeDirectory}/universe/";
|
||||||
NIXOS_OZONE_WL = 1;
|
NIXOS_OZONE_WL = 1;
|
||||||
|
|
|
@ -1,35 +0,0 @@
|
||||||
{
|
|
||||||
inputs,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
nix = {
|
|
||||||
package = pkgs.nix;
|
|
||||||
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
|
||||||
settings = {
|
|
||||||
extra-substituters = [
|
|
||||||
"https://cache.garnix.io"
|
|
||||||
"https://nix-community.cachix.org"
|
|
||||||
"https://cache.nixos.org/"
|
|
||||||
"https://hyprland.cachix.org"
|
|
||||||
];
|
|
||||||
extra-trusted-public-keys = [
|
|
||||||
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
||||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
|
||||||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
|
||||||
];
|
|
||||||
builders-use-substitutes = true;
|
|
||||||
auto-optimise-store = true;
|
|
||||||
trusted-users = [
|
|
||||||
config.home.username
|
|
||||||
"root"
|
|
||||||
"@wheel"
|
|
||||||
];
|
|
||||||
warn-dirty = false;
|
|
||||||
extra-experimental-features = ["nix-command" "flakes"];
|
|
||||||
accept-flake-config = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
{...}: {
|
|
||||||
nixpkgs.config = {
|
|
||||||
allowUnfree = true;
|
|
||||||
allowBroken = true;
|
|
||||||
allowAliases = true;
|
|
||||||
allowInsecure = true;
|
|
||||||
allowUnfreePredicate = _: true;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -7,7 +7,7 @@
|
||||||
theme.stylix = {
|
theme.stylix = {
|
||||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-material-dark-medium.yaml";
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-material-dark-medium.yaml";
|
||||||
# base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
# base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
||||||
wallpapers = ./wallpaper.png;
|
wallpapers = ../wallpaper.png;
|
||||||
useLutgen = true;
|
useLutgen = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
Loading…
Reference in a new issue