41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ inputs, outputs, lib, pkgs, config, self, username, useremail, hostname, sysversion, ... }:
|
|
let
|
|
inherit (inputs) home-manager hyprland;
|
|
in
|
|
{
|
|
# You can import other NixOS modules here
|
|
imports = [
|
|
# If you want to use modules your own flake exports (from modules/nixos):
|
|
# outputs.nixosModules.example
|
|
|
|
# Or modules from other flakes (such as nixos-hardware):
|
|
# inputs.hardware.nixosModules.common-cpu-amd
|
|
# inputs.hardware.nixosModules.common-ssd
|
|
|
|
# You can also split up your configuration and import pieces of it here:
|
|
# ./users.nix
|
|
|
|
# Import your generated (nixos-generate-config) hardware configuration
|
|
./hardware-configuration
|
|
./networking
|
|
"${self}/modules/nixos/core"
|
|
"${self}/modules/nixos/user"
|
|
"${self}/modules/nixos/sysatomic"
|
|
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
# home-manager.useGlobalPkgs = true;
|
|
# home-manager.useUserPackages = true;
|
|
home-manager.extraSpecialArgs = {
|
|
inherit inputs outputs hostname username hyprland sysversion;
|
|
};
|
|
home-manager.users."${username}" = import "${self}/home/desktop";
|
|
}
|
|
];
|
|
|
|
networking.hostName = "${hostname}";
|
|
|
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
|
system.stateVersion = sysversion;
|
|
}
|