libvirt and comma
This commit is contained in:
parent
58c6004ef6
commit
47ae69d5ca
9 changed files with 39 additions and 12 deletions
21
flake.lock
generated
21
flake.lock
generated
|
|
@ -224,6 +224,26 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-index-database": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1696131323,
|
||||||
|
"narHash": "sha256-Y47r8Jo+9rs+XUWHcDPZtkQs6wFeZ24L4CQTfVwE+vY=",
|
||||||
|
"owner": "Mic92",
|
||||||
|
"repo": "nix-index-database",
|
||||||
|
"rev": "031d4b22505fdea47bd53bfafad517cd03c26a4f",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Mic92",
|
||||||
|
"repo": "nix-index-database",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1695830400,
|
"lastModified": 1695830400,
|
||||||
|
|
@ -337,6 +357,7 @@
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"nix-colors": "nix-colors",
|
"nix-colors": "nix-colors",
|
||||||
|
"nix-index-database": "nix-index-database",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable"
|
"nixpkgs-unstable": "nixpkgs-unstable"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,9 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
nix-colors.url = "github:misterio77/nix-colors";
|
nix-colors.url = "github:misterio77/nix-colors";
|
||||||
|
|
||||||
|
nix-index-database.url = "github:Mic92/nix-index-database";
|
||||||
|
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, hyprland, devenv, ... }@inputs:
|
outputs = { self, nixpkgs, home-manager, hyprland, devenv, ... }@inputs:
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
./thinkpad
|
./thinkpad
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
../modules/themes/home.nix
|
../modules/themes/home.nix
|
||||||
|
inputs.nix-index-database.nixosModules.nix-index
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
|
|
@ -28,7 +28,6 @@
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@
|
||||||
homeDirectory = "/home/${user}";
|
homeDirectory = "/home/${user}";
|
||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
devbox
|
||||||
nix-prefetch-git
|
nix-prefetch-git
|
||||||
libnotify
|
libnotify
|
||||||
kubernetes-helm
|
kubernetes-helm
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
security.apparmor.enable = true;
|
security.apparmor.enable = true;
|
||||||
security.apparmor.killUnconfinedConfinables = true;
|
security.apparmor.killUnconfinedConfinables = true;
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,8 @@
|
||||||
# No xbacklight, this is the alterantive
|
# No xbacklight, this is the alterantive
|
||||||
dconf.enable = true;
|
dconf.enable = true;
|
||||||
light.enable = true;
|
light.enable = true;
|
||||||
|
command-not-found.enable = false;
|
||||||
|
nix-index-database.comma.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
[
|
[
|
||||||
./docker.nix
|
./docker.nix
|
||||||
# ./virtualbox.nix
|
# ./virtualbox.nix
|
||||||
|
./libvirt.nix
|
||||||
]
|
]
|
||||||
|
|
|
||||||
9
modules/desktop/virtualisation/libvirt.nix
Normal file
9
modules/desktop/virtualisation/libvirt.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ config, pkgs, user, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
environment.systemPackages = with pkgs; [ virt-manager ];
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
users.extraGroups.libvirtd.members = [ "${user}" ];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
{ config, pkgs, user, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
|
|
||||||
virtualisation.libvirtd.host.enable = true;
|
|
||||||
users.extraGroups.libvirtd.members = [ "${user}" ];
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue