This commit is contained in:
serenity-F 2024-11-20 16:12:19 +10:00
commit 26e4367b9c
No known key found for this signature in database
103 changed files with 212 additions and 7 deletions

0
.gitignore vendored Normal file → Executable file
View file

0
README.md Normal file → Executable file
View file

0
TREE.md Normal file → Executable file
View file

0
core/config.nix Normal file → Executable file
View file

0
core/modules/audio.nix Normal file → Executable file
View file

0
core/modules/default.nix Normal file → Executable file
View file

0
core/modules/desktop.nix Normal file → Executable file
View file

0
core/modules/display.nix Normal file → Executable file
View file

0
core/modules/gaming.nix Normal file → Executable file
View file

0
core/modules/jellyfin.nix Normal file → Executable file
View file

0
core/modules/regreet.nix Normal file → Executable file
View file

0
core/packages.nix Normal file → Executable file
View file

0
flake.lock generated Normal file → Executable file
View file

2
flake.nix Normal file → Executable file
View file

@ -157,7 +157,7 @@
modules = [
disko.nixosModules.disko
sops-nix.nixosModules.sops
./hosts/hades
./hosts/hades/configuration.nix
];
};

0
home/default.nix Normal file → Executable file
View file

0
home/desktop/default.nix Normal file → Executable file
View file

0
home/desktop/dunst.nix Normal file → Executable file
View file

0
home/desktop/gtk-qt.nix Normal file → Executable file
View file

0
home/desktop/hypr/default.nix Normal file → Executable file
View file

0
home/desktop/hypr/hyprland.nix Normal file → Executable file
View file

0
home/desktop/hyprcursor.nix Normal file → Executable file
View file

0
home/desktop/hypridle.nix Normal file → Executable file
View file

0
home/desktop/hyprlock.nix Normal file → Executable file
View file

0
home/desktop/sway/config.nix Normal file → Executable file
View file

0
home/desktop/sway/default.nix Normal file → Executable file
View file

0
home/desktop/sway/sway.nix Normal file → Executable file
View file

0
home/desktop/udiskie.nix Normal file → Executable file
View file

0
home/desktop/waybar.nix Normal file → Executable file
View file

0
home/desktop/wlogout.nix Normal file → Executable file
View file

0
home/desktop/wofi.nix Normal file → Executable file
View file

0
home/desktop/xdg-mime.nix Normal file → Executable file
View file

0
home/programs/btop/default.nix Normal file → Executable file
View file

0
home/programs/default.nix Normal file → Executable file
View file

0
home/programs/fetch/default.nix Normal file → Executable file
View file

0
home/programs/fish/default.nix Normal file → Executable file
View file

0
home/programs/git/default.nix Normal file → Executable file
View file

0
home/programs/git/git.nix Normal file → Executable file
View file

0
home/programs/git/gitsync.nix Normal file → Executable file
View file

0
home/programs/git/lazygit.nix Normal file → Executable file
View file

0
home/programs/kitty/default.nix Normal file → Executable file
View file

0
home/programs/nvim/default.nix Normal file → Executable file
View file

0
home/programs/nvim/keymaps.nix Normal file → Executable file
View file

0
home/programs/nvim/options.nix Normal file → Executable file
View file

0
home/programs/nvim/plugins/bufferline.nix Normal file → Executable file
View file

0
home/programs/nvim/plugins/cmp.nix Normal file → Executable file
View file

0
home/programs/nvim/plugins/dap.nix Normal file → Executable file
View file

0
home/programs/nvim/plugins/dashboard.nix Normal file → Executable file
View file

0
home/programs/nvim/plugins/lsp.nix Normal file → Executable file
View file

0
home/programs/nvim/plugins/markdown.nix Normal file → Executable file
View file

0
home/programs/nvim/plugins/telescope.nix Normal file → Executable file
View file

0
home/programs/nvim/plugins/tree.nix Normal file → Executable file
View file

0
home/programs/nvim/plugins/ui.nix Normal file → Executable file
View file

0
home/programs/nvim/plugins/utils.nix Normal file → Executable file
View file

0
home/programs/nvim/plugins/zenmode.nix Normal file → Executable file
View file

View file

View file

0
home/programs/opentabletdriver/profiles/osu.json Normal file → Executable file
View file

0
home/programs/opentabletdriver/profiles/osu2.json Normal file → Executable file
View file

0
home/programs/opentabletdriver/profiles/osu3.json Normal file → Executable file
View file

0
home/programs/yazi/default.nix Normal file → Executable file
View file

0
home/resources/icons/hibernate.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Before After
Before After

0
home/resources/icons/lock.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Before After
Before After

0
home/resources/icons/logout.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Before After
Before After

0
home/resources/icons/reboot.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Before After
Before After

0
home/resources/icons/shutdown.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 4 KiB

After

Width:  |  Height:  |  Size: 4 KiB

Before After
Before After

0
home/resources/icons/suspend.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Before After
Before After

0
home/resources/themes/SerenityOS.nix Normal file → Executable file
View file

0
home/resources/themes/default.nix Normal file → Executable file
View file

0
home/resources/themes/template.nix Normal file → Executable file
View file

0
home/resources/wallpapers/almondBlossoms-VanGogh.jpg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 2.4 MiB

Before After
Before After

0
home/resources/wallpapers/flight-HelveticaBlanc.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Before After
Before After

0
home/scripts/default.nix Normal file → Executable file
View file

0
home/scripts/desktop.nix Normal file → Executable file
View file

0
home/scripts/nix-utils.nix Normal file → Executable file
View file

0
home/scripts/startup.nix Normal file → Executable file
View file

0
home/systemd/default.nix Normal file → Executable file
View file

0
home/systemd/polkit.nix Normal file → Executable file
View file

0
home/systemd/sync-hecate.nix Normal file → Executable file
View file

0
home/systemd/sync.nix Normal file → Executable file
View file

0
home/users/default.nix Normal file → Executable file
View file

0
home/users/u-serenity.nix Normal file → Executable file
View file

145
hosts/hades/configuration.nix Executable file
View file

@ -0,0 +1,145 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./default.nix
];
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.supportedFilesystems = [ "vfat" "ext4" ];
hardware.enableAllFirmware = true;
nixpkgs.config.allowUnfree = true;
# Use the systemd-boot EFI boot loader.
# boot.loader.systemd-boot.enable = true;
# boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub = {
enable = true;
# version = 2;
device = "/dev/nvme0n1";
# efiSupport = true;
enableCryptodisk = true;
};
boot.initrd.luks.devices = {
root = {
# Use https://nixos.wiki/wiki/Full_Disk_Encryption
device = "/dev/disk/by-uuid/5526aab7-b779-4fc8-95bd-9452bc3a9232";
preLVM = true;
};
};
networking.hostName = "hades"; # Define your hostname.
# Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
# Set your time zone.
# time.timeZone = "Europe/Amsterdam";
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties.
# i18n.defaultLocale = "en_US.UTF-8";
# console = {
# font = "Lat2-Terminus16";
# keyMap = "us";
# useXkbConfig = true; # use xkb.options in tty.
# };
# Enable the X11 windowing system.
# services.xserver.enable = true;
# Enable the GNOME Desktop Environment.
# services.xserver.displayManager.gdm.enable = true;
# services.xserver.desktopManager.gnome.enable = true;
# Configure keymap in X11
# services.xserver.xkb.layout = "us";
# services.xserver.xkb.options = "eurosign:e,caps:escape";
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable sound.
# hardware.pulseaudio.enable = true;
# OR
# services.pipewire = {
# enable = true;
# pulse.enable = true;
# };
# Enable touchpad support (enabled default in most desktopManager).
# services.libinput.enable = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
# users.users.alice = {
# isNormalUser = true;
# extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
# packages = with pkgs; [
# firefox
# tree
# ];
# };
# List packages installed in system profile. To search, run:
# $ nix search wget
# environment.systemPackages = with pkgs; [
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget
# ];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix.
# system.copySystemConfiguration = true;
# This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
#
# Most users should NEVER change this value after the initial install, for any reason,
# even if you've upgraded your system to a new NixOS release.
#
# This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
# so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how
# to actually do that.
#
# This value being lower than the current NixOS release does NOT mean your system is
# out of date, out of support, or vulnerable.
#
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
# and migrated your data accordingly.
#
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "24.05"; # Did you read the comment?
}

0
hosts/hades/default.nix Normal file → Executable file
View file

View file

@ -0,0 +1,41 @@
# 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 = [ "xhci_pci" "ehci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/ad648423-7aa4-4f0f-b157-2f6b458130f7";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/552D-851F";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/b7ccf8c3-3641-4035-b91f-f7e54c6dd380"; }
];
# 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.enp5s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp8s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

4
hosts/hades/modules/default.nix Normal file → Executable file
View file

@ -6,12 +6,12 @@
## Selected host modules for import
./network.nix # network configuration
./extra.nix # configuration.nix substitute
#./extra.nix # configuration.nix substitute
#./zfs.nix # zfs configuration
## Selected core modules for import
../../../core/modules/display.nix # display stuff
../../../core/modules/regreet.nix # regreet customisation
#../../../core/modules/regreet.nix # regreet customisation
../../../core/modules/desktop.nix # didnt work in home-manager :(
../../../core/modules/gaming.nix # didnt work in home-manager :(
../../../core/modules/audio.nix # sound configuration

0
hosts/hades/modules/disko.nix Normal file → Executable file
View file

23
hosts/hades/modules/extra.nix Normal file → Executable file
View file

@ -8,6 +8,7 @@
imports =
[ # Include the results of the hardware scan.
./hardware.nix
../default.nix
];
# Bootloader.
@ -22,8 +23,26 @@
boot.loader.grub.enableCryptodisk = true;
boot.initrd.luks.devices."luks-34a5d7fd-7f3a-4778-8d3a-c7bdec52e96c".keyFile = "/boot/crypto_keyfile.bin";
boot.initrd.luks.devices."luks-f9de3a25-6f75-4e75-b885-160b58634006".keyFile = "/boot/crypto_keyfile.bin";
# Install firefox.
programs.firefox.enable = true;
programs.neovim.enable = true;
programs.git.enable = true;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
nix.settings = {
cores = 0;
experimental-features = [ "flakes" "nix-command" ];
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment?
system.stateVersion = "24.11"; # Did you read the comment?
}

4
hosts/hades/modules/hardware.nix Normal file → Executable file
View file

@ -14,11 +14,11 @@
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/d67a9243-b1d6-47a7-8ae6-bac5c63e7d0e";
{ device = "/dev/disk/by-uuid/efa84ce5-ecd1-46c6-8207-5434919d9f72";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-34a5d7fd-7f3a-4778-8d3a-c7bdec52e96c".device = "/dev/disk/by-uuid/34a5d7fd-7f3a-4778-8d3a-c7bdec52e96c";
boot.initrd.luks.devices."luks-f9de3a25-6f75-4e75-b885-160b58634006".device = "/dev/disk/by-uuid/f9de3a25-6f75-4e75-b885-160b58634006";
swapDevices = [ ];

0
hosts/hades/modules/network.nix Normal file → Executable file
View file

0
hosts/hades/modules/syncthing.nix Normal file → Executable file
View file

0
hosts/hades/modules/zfs.nix Normal file → Executable file
View file

0
hosts/iso/default.nix Normal file → Executable file
View file

0
hosts/iso/modules/default.nix Normal file → Executable file
View file

0
hosts/iso/modules/network.nix Normal file → Executable file
View file

0
hosts/orcus/default.nix Normal file → Executable file
View file

0
hosts/orcus/modules/default.nix Normal file → Executable file
View file

0
hosts/orcus/modules/network.nix Normal file → Executable file
View file

0
hosts/orcus/modules/zfs.nix Normal file → Executable file
View file

0
hosts/persephone/default.nix Normal file → Executable file
View file

0
hosts/persephone/modules/default.nix Normal file → Executable file
View file

Some files were not shown because too many files have changed in this diff Show more