mirror of
https://github.com/gburd/nix-config.git
synced 2024-09-09 11:26:12 +00:00
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{ inputs, lib, pkgs, config, outputs, ... }:
|
|
{
|
|
imports = [
|
|
inputs.impermanence.nixosModules.home-manager.impermanence
|
|
inputs.nix-colors.homeManagerModule
|
|
./cli
|
|
./nvim
|
|
] ++ (builtins.attrValues outputs.homeManagerModules);
|
|
|
|
nixpkgs = {
|
|
overlays = builtins.attrValues outputs.overlays;
|
|
config = {
|
|
allowUnfree = true;
|
|
allowUnfreePredicate = _: true;
|
|
};
|
|
};
|
|
|
|
nix = {
|
|
package = lib.mkDefault pkgs.nix;
|
|
settings = {
|
|
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
|
|
warn-dirty = false;
|
|
};
|
|
};
|
|
|
|
systemd.user.startServices = "sd-switch";
|
|
|
|
programs = {
|
|
home-manager.enable = true;
|
|
git.enable = true;
|
|
autorandr.enable = true;
|
|
};
|
|
|
|
home = {
|
|
username = lib.mkDefault "gburd";
|
|
homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
|
stateVersion = lib.mkDefault "23.05";
|
|
sessionPath = [ "$HOME/.local/bin" ];
|
|
sessionVariables = {
|
|
FLAKE = "$HOME/ws/nix-config";
|
|
};
|
|
|
|
persistence = {
|
|
"/persist/home/gburd" = {
|
|
directories = [
|
|
"Documents"
|
|
"Downloads"
|
|
"Pictures"
|
|
"Videos"
|
|
".local/bin"
|
|
];
|
|
allowOther = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|