59 lines
1.4 KiB
Nix
59 lines
1.4 KiB
Nix
args@{ self, pkgs, home-manager, username, sysversion, ... }: {
|
|
# You can import other NixOS modules here
|
|
imports = [
|
|
./mount.nix
|
|
./network.nix
|
|
./hardware-configuration.nix
|
|
|
|
"${self}/modules/nixos/core"
|
|
"${self}/modules/nixos/fonts"
|
|
"${self}/modules/nixos/user.nix"
|
|
"${self}/modules/nixos/audio.nix"
|
|
|
|
"${self}/modules/nixos/samba.nix"
|
|
"${self}/modules/nixos/virtualize/appimage.nix"
|
|
"${self}/modules/nixos/virtualize/docker.nix"
|
|
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
# home-manager.useGlobalPkgs = true;
|
|
# home-manager.useUserPackages = true;
|
|
home-manager = {
|
|
extraSpecialArgs = {
|
|
inherit (args) self inputs outputs libs hostname username useremail sysversion;
|
|
};
|
|
users."${username}" = { ... }: {
|
|
imports = [
|
|
./hm
|
|
"${self}/home/desktop.nix"
|
|
"${self}/modules/home/develop.nix"
|
|
];
|
|
};
|
|
};
|
|
}
|
|
];
|
|
|
|
hardware.graphics = {
|
|
enable = true;
|
|
extraPackages = with pkgs; [
|
|
vaapiIntel
|
|
intel-media-driver
|
|
];
|
|
};
|
|
|
|
services = {
|
|
gnome.gnome-keyring.enable = true;
|
|
};
|
|
|
|
security.pam.services.swaylock = { };
|
|
|
|
programs.zsh = {
|
|
enable = true;
|
|
};
|
|
|
|
users.users."${username}".shell = pkgs.zsh;
|
|
|
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
|
system.stateVersion = sysversion;
|
|
}
|