uhhh, have a look. better commit messages in future, proooomise xoxo
This commit is contained in:
commit
d5354e0828
22 changed files with 1440 additions and 0 deletions
89
hosts/proserpina/configuration.nix
Normal file
89
hosts/proserpina/configuration.nix
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
{
|
||||
imports =
|
||||
[
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
../../configuration.nix
|
||||
];
|
||||
|
||||
# Enable swap on luks
|
||||
boot = {
|
||||
loader = {
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
efiSysMountPoint = "/boot/efi";
|
||||
};
|
||||
};
|
||||
initrd = {
|
||||
luks.devices."luks-c2b8b1cb-6d01-4e7c-a659-1fcf01618c41" = {
|
||||
device = "/dev/disk/by-uuid/c2b8b1cb-6d01-4e7c-a659-1fcf01618c41";
|
||||
# keyfile = "/crypto_keyfile.bin";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.fstrim.enable = true;
|
||||
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
|
||||
hardware = {
|
||||
|
||||
cpu.intel.updateMicrocode = true;
|
||||
enableAllFirmware = false;
|
||||
bluetooth.enable = true;
|
||||
|
||||
opengl = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
intel-compute-runtime
|
||||
intel-media-driver
|
||||
vaapiIntel
|
||||
vaapiVdpau
|
||||
libvdpau-va-gl
|
||||
];
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
nix = {
|
||||
# settings = {
|
||||
# };
|
||||
gc = {
|
||||
automatic - true;
|
||||
dates = "daily";
|
||||
options = "--delete-older-than 2d"
|
||||
persistent = true;
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "proserpina"; # Define your hostname
|
||||
};
|
||||
|
||||
services = {
|
||||
|
||||
syncthing = {
|
||||
enable = true;
|
||||
dataDir = "/home/serenity/";
|
||||
configDir = "/home/serenity/.config/syncthing";
|
||||
user = "serenity";
|
||||
settings = {
|
||||
|
||||
devices = {
|
||||
# hades.id = "$DEVICE_ID";
|
||||
# hecate.id = "$DEVICE_ID";
|
||||
# proserpina.id = "$DEVICE_ID";
|
||||
};
|
||||
|
||||
folders = {
|
||||
# "$FOLDER_ID" = {
|
||||
# path = "/home/serenity/Documents/Notes";
|
||||
# devices = [ "hecate" "hades" ];
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
72
hosts/proserpina/hardware-configuration.nix
Normal file
72
hosts/proserpina/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot = {
|
||||
kernelModules = [
|
||||
"kvm-intel"
|
||||
];
|
||||
extraModulePackages = [
|
||||
];
|
||||
initrd = {
|
||||
availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"ahci"
|
||||
"nvme"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
# "rtsc_pci_sdmmc"
|
||||
];
|
||||
kernelModules = [
|
||||
];
|
||||
secrets = {
|
||||
# "crypto_keyfile.bin" = null;
|
||||
};
|
||||
luks = {
|
||||
devices."luks-c2b8b1cb-6d01-4e7c-a659-1fcf01618c41" = {
|
||||
device = "/dev/disk/by-uuid/c2b8b1cb-6d01-4e7c-a659-1fcf01618c41";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/0c83c280-0f65-4d0b-9451-58052ea168f2";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
# boot.initrd.luks.devices."luks-c2b8b1cb-6d01-4e7c-a659-1fcf01618c41".device = "/dev/disk/by-uuid/c2b8b1cb-6d01-4e7c-a659-1fcf01618c41";
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/4E83-1199";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices =[
|
||||
{ device = "/dev/disk/by-uuid/81efa66d-8a22-49ad-9f2e-abb3e10061da"; }
|
||||
];
|
||||
|
||||
# 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
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking = {
|
||||
useDHCP = lib.mkDefault true;
|
||||
interfaces = {
|
||||
enp0s31f6.useDHCP = lib.mkDefault true;
|
||||
wlp58s0.useDHCP = lib.mkDefault true;
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
|
||||
}
|
||||
14
hosts/proserpina/home.nix
Normal file
14
hosts/proserpina/home.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
let
|
||||
gnomeProfile = import ../../profiles/gnome.nix;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
../../home.nix
|
||||
];
|
||||
dconf.settings = {
|
||||
"org/gnome/shell" = {
|
||||
enabled-extensions = gnomeProfile.extensions.laptop;
|
||||
# favorite-apps = gnomeProfile.pinnedApps.laptop;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue