libvirt and comma

This commit is contained in:
Glen Goodwin 2023-10-01 13:10:41 -04:00
parent 58c6004ef6
commit 47ae69d5ca
9 changed files with 39 additions and 12 deletions

21
flake.lock generated
View file

@ -224,6 +224,26 @@
"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": {
"locked": {
"lastModified": 1695830400,
@ -337,6 +357,7 @@
"home-manager": "home-manager",
"hyprland": "hyprland",
"nix-colors": "nix-colors",
"nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable"
}

View file

@ -20,6 +20,9 @@
inputs.nixpkgs.follows = "nixpkgs";
};
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:

View file

@ -16,7 +16,7 @@
./thinkpad
./configuration.nix
../modules/themes/home.nix
inputs.nix-index-database.nixosModules.nix-index
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
@ -28,7 +28,6 @@
};
}
];
};

View file

@ -26,6 +26,7 @@
homeDirectory = "/home/${user}";
packages = with pkgs; [
devbox
nix-prefetch-git
libnotify
kubernetes-helm

View file

@ -1,4 +1,4 @@
{ ... }:
{ pkgs, ... }:
{
security.apparmor.enable = true;
security.apparmor.killUnconfinedConfinables = true;

View file

@ -29,6 +29,8 @@
# No xbacklight, this is the alterantive
dconf.enable = true;
light.enable = true;
command-not-found.enable = false;
nix-index-database.comma.enable = true;
};
services = {

View file

@ -1,4 +1,5 @@
[
./docker.nix
# ./virtualbox.nix
./libvirt.nix
]

View 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}" ];
}

View file

@ -1,9 +0,0 @@
{ config, pkgs, user, ... }:
{
virtualisation.libvirtd.host.enable = true;
users.extraGroups.libvirtd.members = [ "${user}" ];
}