mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 06:44:26 -05:00
Minimal with flake update
This commit is contained in:
@@ -9,12 +9,6 @@
|
||||
./../../modules/essential.nix
|
||||
./../../modules/common/sops.nix
|
||||
|
||||
# This is buggy right now
|
||||
#./../../modules/services/webdav.nix
|
||||
# Not working right now due to nvidia problems
|
||||
# It worked fine on another machine thats why I am wondering
|
||||
#./../../modules/services/ai.nix
|
||||
|
||||
./../../modules/graphics/workstation.nix
|
||||
|
||||
./../../modules/hardware/nvidia.nix
|
||||
@@ -23,26 +17,6 @@
|
||||
];
|
||||
|
||||
networking.hostName = "minoxy";
|
||||
enableCuda = false;
|
||||
|
||||
systemd.targets.sleep.enable = true;
|
||||
systemd.targets.suspend.enable = true;
|
||||
|
||||
programs.ydotool.enable = true;
|
||||
services.input-remapper.enable = true;
|
||||
|
||||
fileSystems."/shared" = {
|
||||
device = "/dev/disk/by-uuid/8CEA-13E3"; # use lsblk -f
|
||||
fsType = "exfat";
|
||||
options = [ "defaults" "uid=1000" "gid=100" "umask=000" ];
|
||||
};
|
||||
|
||||
# Testing
|
||||
#environment.etc."mnt/jousb".source = "/mnt/jousb"; # ensures directory exists
|
||||
#services.udev.extraRules = ''
|
||||
# ACTION=="add", SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="JOUSB", RUN+="${pkgs.mount}/bin/mount /dev/disk/by-label/JOUSB /mnt/jousb"
|
||||
# ACTION=="remove", SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="JOUSB", RUN+="${pkgs.umount}/bin/umount /mnt/jousb"
|
||||
#'';
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
virtualisation.docker.storageDriver = "btrfs";
|
||||
|
||||
@@ -4,41 +4,45 @@
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
# FUll btrfs config
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/e52b1440-66f3-4129-b3c0-fba3491e2bbc";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=root" ];
|
||||
};
|
||||
fileSystems."/home" =
|
||||
{ device = "/dev/disk/by-uuid/e52b1440-66f3-4129-b3c0-fba3491e2bbc";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=home" ];
|
||||
};
|
||||
fileSystems."/nix" =
|
||||
{ device = "/dev/disk/by-uuid/e52b1440-66f3-4129-b3c0-fba3491e2bbc";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=nix" ];
|
||||
};
|
||||
fileSystems."/shared" = {
|
||||
device = "/dev/disk/by-uuid/8CEA-13E3"; # use lsblk -f
|
||||
fsType = "exfat";
|
||||
options = [ "defaults" "uid=1000" "gid=100" "umask=000" ];
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/3091-F0BF";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
};
|
||||
# FUll btrfs config
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/e52b1440-66f3-4129-b3c0-fba3491e2bbc";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=root" ];
|
||||
};
|
||||
fileSystems."/home" = {
|
||||
device = "/dev/disk/by-uuid/e52b1440-66f3-4129-b3c0-fba3491e2bbc";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=home" ];
|
||||
};
|
||||
fileSystems."/nix" = {
|
||||
device = "/dev/disk/by-uuid/e52b1440-66f3-4129-b3c0-fba3491e2bbc";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=nix" ];
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/3091-F0BF";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/3e591e27-c6c5-4e28-900b-f899bc3d5e70"; }
|
||||
];
|
||||
[{ device = "/dev/disk/by-uuid/3e591e27-c6c5-4e28-900b-f899bc3d5e70"; }];
|
||||
|
||||
# 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
|
||||
@@ -49,5 +53,6 @@
|
||||
# networking.interfaces.wlp112s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.cpu.intel.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
||||
@@ -16,9 +16,7 @@
|
||||
./../../modules/laptop/battery.nix
|
||||
|
||||
./../../modules/graphics/workstation.nix
|
||||
|
||||
#./../../modules/services/webdav.nix
|
||||
./../../modules/services/scanning.nix
|
||||
./../../modules/services/printer.nix
|
||||
];
|
||||
|
||||
networking.hostName = "nixyos";
|
||||
|
||||
@@ -11,31 +11,19 @@
|
||||
|
||||
./../../modules/hardware/xremap.nix
|
||||
./../../modules/hardware/boot.nix
|
||||
|
||||
./../../modules/graphics/workstation.nix
|
||||
|
||||
./../../modules/laptop/powersave.nix
|
||||
./../../modules/laptop/battery.nix
|
||||
|
||||
#./../../modules/services/webdav.nix
|
||||
./../../modules/services/scanning.nix
|
||||
./../../modules/services/printer.nix
|
||||
];
|
||||
|
||||
networking.hostName = "thinix";
|
||||
batMode = "double";
|
||||
# Cannot have this and tlp
|
||||
#services.power-profiles-daemon.enable = true;
|
||||
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
pinentryPackage = with pkgs; pinentry-all;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
|
||||
swapDevices = [{
|
||||
device = "/swapfile";
|
||||
size = 4096;
|
||||
}];
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
system.stateVersion = "24.11"; # Dont change this
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user