moving rhapsody-in-green to systems

This commit is contained in:
Richie Cahill
2024-04-19 19:28:36 -04:00
committed by Alice Huston
parent 9f7cb6f186
commit 0a88a21372
4 changed files with 5 additions and 6 deletions

View File

@ -0,0 +1,97 @@
{
imports = [
./hardware.nix
../../users/richie/syncthing_base.nix
];
boot = {
useSystemdBoot = true;
default = true;
};
networking = {
networkmanager.enable = true;
hostId = "9b68eb32";
};
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
sound.enable = true;
services = {
autopull.enable = false;
displayManager.sddm.enable = true;
xserver = {
enable = true;
desktopManager.plasma5.enable = true;
xkb = {
layout = "us";
variant = "";
};
};
printing.enable = true;
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
syncthing.settings.folders = {
"notes" = {
id = "l62ul-lpweo";
path = "/home/richie/notes";
devices = [
"phone"
"jeeves"
];
fsWatcherEnabled = true;
};
"books" = {
id = "6uppx-vadmy";
path = "/home/richie/books";
devices = [
"phone"
"jeeves"
];
fsWatcherEnabled = true;
};
"important" = {
id = "4ckma-gtshs";
path = "/home/richie/important";
devices = [
"phone"
"jeeves"
];
fsWatcherEnabled = true;
};
"music" = {
id = "vprc5-3azqc";
path = "/home/richie/music";
devices = [
"phone"
"jeeves"
];
"projects" = {
id = "vyma6-lqqrz";
path = "/home/richie/projects";
devices = [ "jeeves" ];
fsWatcherEnabled = true;
};
fsWatcherEnabled = true;
};
};
zerotierone = {
enable = true;
joinNetworks = [ "e4da7455b2ae64ca" ];
};
};
system.autoUpgrade.enable = false;
system.stateVersion = "23.11";
}

View File

@ -0,0 +1,10 @@
{ inputs, ... }:
{
users = [
"richie"
];
system = "x86_64-linux";
home = true;
sops = true;
modules = [ inputs.nixos-hardware.nixosModules.framework-13-7040-amd ];
}

View File

@ -0,0 +1,48 @@
# 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.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"thunderbolt"
"usbhid"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/c5cc486b-0076-40b0-9402-7ddb2b4a7fdf";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/D571-3949";
fsType = "vfat";
};
swapDevices = [ { device = "/dev/disk/by-uuid/57a25825-69a9-41ac-999e-5137a01edc9e"; } ];
# 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;
# networking.interfaces.docker0.useDHCP = lib.mkDefault true;
# networking.interfaces.enp195s0f3u1u3.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}