mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
Big, might break stuff
This commit is contained in:
parent
5fafc45eb4
commit
54c6e42ca0
6 changed files with 57 additions and 51 deletions
|
|
@ -1 +1,7 @@
|
|||
{ imports = [ ./hardware.nix ./system.nix ../../user ]; }
|
||||
{
|
||||
imports = [
|
||||
../../user
|
||||
./hardware.nix
|
||||
./system.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,37 +10,23 @@
|
|||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
boot.kernelParams = [ "intel_iommu=on" ];
|
||||
boot.kernelModules = [ "kvm-intel" "virtio" "vfio-pci" "coretemp" ];
|
||||
|
||||
# Bootloader
|
||||
boot.loader = {
|
||||
timeout = null;
|
||||
grub = {
|
||||
enable = true;
|
||||
useOSProber = true;
|
||||
devices = [ "nodev" ];
|
||||
efiSupport = true;
|
||||
configurationLimit = 5;
|
||||
};
|
||||
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
};
|
||||
};
|
||||
|
||||
# FStab
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/af24c5b3-8a6e-4333-a61d-922a97928cae";
|
||||
fsType = "ext4";
|
||||
};
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/af24c5b3-8a6e-4333-a61d-922a97928cae";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/home" = {
|
||||
device = "/dev/disk/by-uuid/1639ee20-28d6-4649-814d-ba981c138b35";
|
||||
fsType = "ext4";
|
||||
};
|
||||
"/home" = {
|
||||
device = "/dev/disk/by-uuid/1639ee20-28d6-4649-814d-ba981c138b35";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/74B9-4AAF";
|
||||
fsType = "vfat";
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/74B9-4AAF";
|
||||
fsType = "vfat";
|
||||
};
|
||||
};
|
||||
|
||||
# GPU
|
||||
|
|
@ -48,7 +34,10 @@
|
|||
|
||||
# Virtualisation
|
||||
nix.settings.system-features = [ "kvm" ];
|
||||
environment.systemPackages = [ pkgs.virt-manager ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
];
|
||||
|
||||
virtualisation.libvirtd = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
{ system.stateVersion = "22.11";
|
||||
|
||||
# Users
|
||||
users.users = {
|
||||
${config.user.name} = config.user;
|
||||
};
|
||||
|
||||
# Nix
|
||||
nix = {
|
||||
channel.enable = false;
|
||||
|
|
@ -18,6 +23,22 @@
|
|||
};
|
||||
};
|
||||
|
||||
# Bootloader
|
||||
boot.loader = {
|
||||
timeout = null;
|
||||
grub = {
|
||||
enable = true;
|
||||
useOSProber = true;
|
||||
devices = [ "nodev" ];
|
||||
efiSupport = true;
|
||||
configurationLimit = 5;
|
||||
};
|
||||
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
pavucontrol
|
||||
|
||||
|
|
@ -50,17 +71,7 @@
|
|||
alsa.support32Bit = true;
|
||||
};
|
||||
|
||||
# Users
|
||||
users.users = {
|
||||
${config.user.name} = {
|
||||
isNormalUser = true;
|
||||
extraGroups = config.user.groups;
|
||||
openssh.authorizedKeys = lib.mkIf (config.user.name == "bryan") {
|
||||
keys = config.user.sshKeys;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Sudo Options
|
||||
security.sudo = {
|
||||
wheelNeedsPassword = false;
|
||||
execWheelOnly = true;
|
||||
|
|
@ -100,7 +111,7 @@
|
|||
|
||||
# Networking
|
||||
networking = {
|
||||
hostName = "${config.user.host}";
|
||||
hostName = "socrates";
|
||||
useDHCP = lib.mkDefault true;
|
||||
networkmanager.enable = true;
|
||||
firewall = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue