cleanup (mostly)
This commit is contained in:
parent
63774580b8
commit
20c5b716ef
4 changed files with 18 additions and 15 deletions
|
@ -4,8 +4,8 @@
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
||||||
|
@ -13,19 +13,17 @@
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" = {
|
||||||
{ device = "/dev/disk/by-uuid/95b15244-c97c-42a5-9be1-ed5df6872dcb";
|
device = "/dev/disk/by-uuid/95b15244-c97c-42a5-9be1-ed5df6872dcb";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" = {
|
||||||
{ device = "/dev/disk/by-uuid/BF87-B3DE";
|
device = "/dev/disk/by-uuid/BF87-B3DE";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices =
|
swapDevices =[ { device = "/dev/disk/by-uuid/b6445ced-1cc2-461f-a81f-6e8409c10f48"; } ];
|
||||||
[ { device = "/dev/disk/by-uuid/b6445ced-1cc2-461f-a81f-6e8409c10f48"; }
|
|
||||||
];
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
|
|
@ -5,6 +5,9 @@
|
||||||
|
|
||||||
networking.hostName = "surface";
|
networking.hostName = "surface";
|
||||||
|
|
||||||
|
# Add user to surface control group for surface linux
|
||||||
|
users.users.twoneis.extraGroups = [ "surface-control" ];
|
||||||
|
|
||||||
# Enable OpenGL
|
# Enable OpenGL
|
||||||
hardware.opengl = {
|
hardware.opengl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
./audio.nix
|
./audio.nix
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
./docker.nix
|
./docker.nix
|
||||||
|
./virt.nix
|
||||||
../gnome
|
../gnome
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -79,6 +80,6 @@
|
||||||
users.users.twoneis = {
|
users.users.twoneis = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "twoneis";
|
description = "twoneis";
|
||||||
extraGroups = [ "networkmanager" "wheel" "surface-control" "docker" ];
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
users.users.twoneis.extraGroups = [ "docker" ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue