hosts: remove cr, move systems up directory

This commit is contained in:
Charlie Root 2024-09-09 11:11:53 +02:00
commit 081848ddfc
16 changed files with 3 additions and 2 deletions

View file

@ -0,0 +1,104 @@
{
config,
lib,
pkgs,
...
}: {
# Time Zone
time.timeZone = "Europe/Zurich";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
console.keyMap = "de";
security.polkit.enable = true;
programs.kdeconnect.enable = true;
programs.nix-ld.enable = false;
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
services = {
fstrim.enable = lib.mkDefault true;
thermald.enable = true;
auto-cpufreq.enable = true;
printing.enable = true;
};
modules = {
system = {
hardware = {
bluetooth = {
enable = true;
powerOnBoot = false;
};
};
programs = {
editors = {
emacs.enable = true;
# only emacs for me, right now.
neovim.enable = true;
# sadly just not advanced enough, yet.
helix.enable = false;
kakoune.enable = false;
};
discord.enable = true;
firefox.enable = true;
spotify.enable = true;
zellij.enable = true;
terminals = {
foot.enable = true;
kitty.enable = true;
};
};
sound.enable = true;
};
usrEnv = {
desktops.hyprland.enable = true;
programs = {
launchers = {
fuzzel.enable = true;
};
media = {
beets.enable = true;
mpv.enable = true;
ncmpcpp.enable = true;
};
};
services = {
locate.enable = true;
media.mpd = {
enable = true;
musicDirectory = "/home/${config.modules.other.system.username}/Nextcloud/media/Music";
};
};
style = {
gtk.enable = true;
qt.enable = true;
};
};
other = {
system = {
hostname = "hermit";
username = "vali";
gitPath = "/home/vali/projects/nichts";
};
home-manager = {
enable = true;
};
};
programs = {
ssh.enable = true;
btop.enable = true;
newsboat.enable = true;
fish.enable = true;
nh.enable = true;
waybar.enable = true;
};
services = {
dunst.enable = true;
};
};
system.stateVersion = "23.11";
}

8
hosts/hermit/default.nix Normal file
View file

@ -0,0 +1,8 @@
_: {
imports = [
./configuration.nix
./programs.nix
./hardware-configuration.nix
./hardware
];
}

View file

@ -0,0 +1,36 @@
# 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,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.kernelParams = ["mem_sleep_default=deep"];
boot.extraModulePackages = [];
# swapDevices =
# [ { device = "/dev/disk/by-uuid/3518272e-1051-41e2-a7f0-f5c744e46789"; }
# ];
# Earlier font setup
console.earlySetup = true;
# 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.wlp59s0.useDHCP = lib.mkDefault true;
# Enable firmware updates via `fwupdmgr`.
services.fwupd.enable = lib.mkDefault true;
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -0,0 +1 @@
_: {imports = [./monitors.nix ./fs.nix];}

View file

@ -0,0 +1,14 @@
{
fileSystems."/" = {
device = "/dev/disk/by-uuid/b51d0f6c-2980-4117-b9df-5cc2c8ddd2d6";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-f1b24c23-8211-433e-983e-2ebad020826e".device = "/dev/disk/by-uuid/f1b24c23-8211-433e-983e-2ebad020826e";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/E355-67EA";
fsType = "vfat";
options = ["fmask=0022" "dmask=0022"];
};
}

View file

@ -0,0 +1,16 @@
_: {
modules.system.hardware.monitors = {
eDP-1 = {
resolution = {
x = 1920;
y = 1080;
};
scale = 1;
refreshRate = 60;
position = {
x = 0;
y = 0;
};
};
};
}

View file

@ -0,0 +1,10 @@
{
config,
lib,
pkgs,
...
}: let
xanmod_custom = callPackage ./xanmod.nix;
in {
boot.kernelPackages = xanmod_custom;
}

95
hosts/hermit/programs.nix Normal file
View file

@ -0,0 +1,95 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
alejandra
alsa-utils
asciinema
bibata-cursors
blueman
bluetuith
bluez
#botany
cachix
calc
calibre
cbonsai
cmake
cmus
difftastic
dig
# easyeffects #broken
evince
eza
fastfetch
feh
ffmpeg-full
fftw
fzf
gcc
gdb
gnumake
grc
git
helvum
httpie
hyperfine
imagemagick
img2pdf
impala
imv
inetutils
jrnl
keepassxc
lazygit
libtool
links2
mapscii
moc
ncmpcpp
neofetch
networkmanagerapplet
nextcloud-client
#nheko
nicotine-plus
nil
nitch
swww
microfetch
nmap
notesnook
onlyoffice-bin
pamixer
pavucontrol
pdfarranger
pfetch
pidgin
playerctl
polkit
python3
ripgrep
scc
sherlock
signal-desktop-beta
smartmontools
telegram-desktop
tldr
thunderbird
trash-cli
tree
ttyper
unzip
util-linux
v4l-utils
ventoy-full
vlc
weechat
wget
wireguard-tools
wl-clipboard
xdg-utils
xournalpp
yt-dlp
zapzap
zip
zoxide
];
}