-
Notifications
You must be signed in to change notification settings - Fork 1
/
desktop.nix
42 lines (42 loc) · 1.15 KB
/
desktop.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
config,
lib,
inputs,
...
}: {
flake.nixosConfigurations.desktop = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs.inputs = inputs;
modules = [
./common.nix
./users.nix
./home.nix
./hardware/desktop.nix
./cachix.nix
inputs.home-manager.nixosModules.home-manager
inputs.fps.nixosModules.programs-sqlite
({pkgs, ...}: {
nixpkgs = {
inherit (config) overlays;
};
nix.registry.nixpkgs.flake = inputs.nixpkgs;
time.hardwareClockInLocalTime = true;
machine = "desktop";
networking.hostName = "Desktop_Nixos";
system.configurationRevision = lib.mkIf (inputs.self ? rev) inputs.self.rev;
boot.initrd.kernelModules = ["amdgpu"];
hardware.graphics = {
extraPackages = [pkgs.amdvlk];
extraPackages32 = [pkgs.driversi686Linux.amdvlk];
};
services.ratbagd.enable = true;
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
environment.systemPackages = with pkgs; [
qemu
quickemu
];
})
];
};
}