This commit is contained in:
Casper V. Kristensen 2023-08-01 16:55:53 +02:00
parent 7904c8f3c8
commit 369c3399b5
10 changed files with 42 additions and 36 deletions

View file

@ -19,6 +19,9 @@
}; };
outputs = { self, nixpkgs, ... }@inputs: { outputs = { self, nixpkgs, ... }@inputs: {
# https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-fmt.html
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
nixosConfigurations = { nixosConfigurations = {
# Home desktop # Home desktop
omega = nixpkgs.lib.nixosSystem { omega = nixpkgs.lib.nixosSystem {

View file

@ -0,0 +1 @@

View file

@ -2,7 +2,8 @@
{ {
imports = imports =
[ (modulesPath + "/profiles/qemu-guest.nix") [
(modulesPath + "/profiles/qemu-guest.nix")
]; ];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ]; boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
@ -28,7 +29,7 @@
swapDevices = [ swapDevices = [
{ {
device = "/nix/persist/swapfile"; device = "/nix/persist/swapfile";
size = 16*1024; # 16 GiB size = 16 * 1024; # 16 GiB
} }
]; ];

View file

@ -2,7 +2,8 @@
{ {
imports = imports =
[ (modulesPath + "/installer/scan/not-detected.nix") [
(modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ];
@ -28,7 +29,7 @@
swapDevices = [ swapDevices = [
{ {
device = "/nix/persist/swapfile"; device = "/nix/persist/swapfile";
size = 8*1024; # 8 GiB size = 8 * 1024; # 8 GiB
} }
]; ];

View file

@ -21,7 +21,7 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPB/qr63FB0ZqOe/iZGwIKNHD8a1Ud/mXVjQPmpIG7pM caspervk@omega" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPB/qr63FB0ZqOe/iZGwIKNHD8a1Ud/mXVjQPmpIG7pM caspervk@omega"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII71DKQziktCkyMAmL25QKRK6nG2uJDkQXioIZp5JkMZ caspervk@zeta" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII71DKQziktCkyMAmL25QKRK6nG2uJDkQXioIZp5JkMZ caspervk@zeta"
]; ];
packages = with pkgs; []; packages = with pkgs; [ ];
}; };
}; };
}; };

View file

@ -53,6 +53,6 @@
hardware.opengl = { hardware.opengl = {
enable = true; enable = true;
extraPackages = with pkgs; [intel-media-driver ]; extraPackages = with pkgs; [ intel-media-driver ];
}; };
} }