mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-07 20:28:08 +01:00
Now using currentSystemUser for username across machines
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ ... }:
|
||||
{ currentSystemUser, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware.nix
|
||||
@@ -11,5 +11,14 @@
|
||||
|
||||
networking.hostName = "katana"; # Define your hostname.
|
||||
|
||||
# I still don't know why my configuration fails if i omit this
|
||||
system.userActivationScripts = {
|
||||
removeConflictingFiles = {
|
||||
text = ''
|
||||
rm -f /home/${currentSystemUser}/.gtkrc-2.0.backup
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "24.05"; # Did you read the comment?
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{ ... }:
|
||||
{ currentSystemUser, ... }:
|
||||
{
|
||||
virtualisation.podman.enable = true;
|
||||
virtualisation.podman.dockerCompat = true;
|
||||
|
||||
programs.virt-manager.enable = true;
|
||||
users.groups.libvirtd.members = ["r3ddy"];
|
||||
users.groups.libvirtd.members = ["${currentSystemUser}"];
|
||||
virtualisation.libvirtd.enable = true;
|
||||
virtualisation.spiceUSBRedirection.enable = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user