mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
moved vm aliases to vfio.nix
This commit is contained in:
parent
f049f7fe37
commit
0cec0448ce
4 changed files with 9 additions and 9 deletions
4
flake.lock
generated
4
flake.lock
generated
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
4
nix.nix
4
nix.nix
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue