moved vm aliases to vfio.nix

This commit is contained in:
ISnortPennies 2023-02-04 23:15:47 -05:00
parent f049f7fe37
commit 0cec0448ce
4 changed files with 9 additions and 9 deletions

4
flake.lock generated
View file

@ -105,11 +105,11 @@
]
},
"locked": {
"lastModified": 1675557167,
"lastModified": 1675562731,
"narHash": "sha256-L1PZV1sYymzyklrluQ39J0yJQDPIv6W7eMogwv4hoOY=",
"owner": "Gerg-L",
"repo": "spicetify-nix",
"rev": "b32952b5928c9ea74882c6e7889d6393e9336b9d",
"rev": "909c78b2741ead6de08aa170ad5eb81f44b936ef",
"type": "github"
},
"original": {

View file

@ -23,8 +23,6 @@
NIX_BUILD_SHELL = "zsh";
};
shellAliases = {
vm-start = "virsh start Windows";
vm-stop = "virsh shutdown Windows";
#make sudo use aliases
sudo = "sudo ";
#paste link trick

View file

@ -25,7 +25,13 @@
};
};
};
environment.systemPackages = with pkgs; [virt-manager];
environment = {
systemPackages = with pkgs; [virt-manager];
shellAliases = {
vm-start = "virsh start Windows";
vm-stop = "virsh shutdown Windows";
};
};
systemd.services.libvirtd.preStart = let
qemuHook = pkgs.writeScript "qemu-hook" ''
#!${pkgs.stdenv.shell}

View file

@ -4,10 +4,6 @@
config,
...
}: {
environment.etc = {
"nix/flake-channels/system".source = inputs.self;
"nix/flake-channels/nixpkgs".source = inputs.nixpkgs.outPath;
};
nix = {
nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;