nixos/user/default.nix
2024-03-21 19:35:53 +01:00

37 lines
931 B
Nix

{ pkgs, inputs, user, ... }: {
imports = [ inputs.home-manager.nixosModules.home-manager ];
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
extraSpecialArgs = { inherit pkgs inputs user; };
users.${user} = { pkgs, ... }: {
imports = [
inputs.sops-nix.homeManagerModules.sops
./sops
./programs/neovim
./programs/firefox
./programs/tmux
./programs/dunst
./programs/rofi
./programs/obs-studio
./programs/vscode
./scripts
./zsh
./packages
./ssh
./services/ssh-office.nix
./services/gnome-keyring.nix
];
tmux.enable = true;
firefox.enable = true;
# xdg.enable = true;
home = {
username = "${user}";
homeDirectory = "/home/${user}";
stateVersion = "23.11";
};
programs.home-manager.enable = true;
};
};
}