mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 13:23:11 +01:00
26 lines
731 B
Nix
26 lines
731 B
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
imports = [ ./fixes.nix ];
|
|
nixpkgs.config.allowUnfree = true;
|
|
users.users.rouven = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" "video" "libvirtd" ];
|
|
};
|
|
system.activationScripts.report-home-manager-changes = ''
|
|
PATH=$PATH:${lib.makeBinPath [ pkgs.nvd pkgs.nix ]}
|
|
nvd diff $(ls -dv /nix/var/nix/profiles/per-user/rouven/home-manager-*-link | tail -2)
|
|
'';
|
|
home-manager.useUserPackages = true;
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.users.rouven = { lib, pkgs, ... }: {
|
|
imports = [ ./modules ];
|
|
|
|
config = {
|
|
home.username = "rouven";
|
|
home.homeDirectory = "/home/rouven";
|
|
home.stateVersion = config.system.stateVersion;
|
|
};
|
|
};
|
|
}
|