mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2026-02-04 13:23:26 -05:00
Dirty?
This commit is contained in:
parent
f947115220
commit
505247cf5f
5 changed files with 419 additions and 2 deletions
47
hosts/virt-nix/default.nix
Normal file
47
hosts/virt-nix/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
# Kim
|
||||
# System configuration for my desktop
|
||||
|
||||
{ inputs, globals, overlays, ... }:
|
||||
|
||||
with inputs;
|
||||
|
||||
nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
globals
|
||||
home-manager.nixosModules.home-manager
|
||||
# ../../modules/common
|
||||
# ../../modules/nixos
|
||||
{
|
||||
# something with overlays, I don't get those yet.
|
||||
|
||||
# Hardware
|
||||
physical = true;
|
||||
networking.hostName = "virt-nix";
|
||||
|
||||
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
services.xserver.videoDrivers = [ "amdgpu" ]; # TODO: I use wayland, do I need this?
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
powerManagement.cpuFreqGovernor = "performance";
|
||||
hardware.cpu.amd.updateMicrocode = true;
|
||||
|
||||
fileSystems."/" =
|
||||
{
|
||||
device = "/dev/disk/by-uuid/ba78bd44-dd31-4f55-88ce-ab83fbf3eb4e";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
|
||||
# TODO: identityFile = "/home/${globals.user}/.ssh/id_ed2519";
|
||||
# TODO: passwordHash = nixpkgs.lib.fileContents ../../password.sha512;
|
||||
|
||||
# Theming?
|
||||
}
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue