Merge branch 'experimental'

This commit is contained in:
WinterEkisha committed 2026-11-17 20:12:17 -08:00
commit c10382bd7f
45 files changed
+849 -367

No files matched your search

@@ -61,7 +61,7 @@ in
extraSpecialArgs = { inherit inputs; };
backupFileExtension = "backup";
users = {
EXAMPLE = import ../../home/EXAMPLE/${hostname}.nix; # FIXME
EXAMPLE = import ../../../home/Ricky/EXAMPLE/${hostname}.nix; # FIXME
};
};
@@ -82,5 +82,5 @@ in
};
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "25.11";
#system.stateVersion = "25.11"; #FIXME, should be fine to change on a fresh install
}
+39
View File
@@ -0,0 +1,39 @@
{
pkgs,
config,
lib,
...
}: let
username = "dev";
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in {
users.users.${username} = {
isNormalUser = true;
extraGroups = ifTheyExist [
"audio"
"deluge"
"docker"
"git"
"i2c"
"libvirtd"
"minecraft"
"mysql"
"wpa_supplicant"
"plugdev"
"podman"
"tss"
"video"
"wheel"
"wireshark"
];
};
# TODO: ensure correct paths
home-manager.users.${username} = import ../../../../../home/Ricky/${username}/${config.networking.hostName}.nix;
security.pam.services = {
swaylock = {};
${username}.enableGnomeKeyring = true;
};
}
@@ -27,10 +27,11 @@ in {
"wireshark"
];
#packages = [pkgs.home-manager];
};
# TODO: ensure correct paths
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
home-manager.users.${username} = import ../../../../home/Ricky/${username}/${config.networking.hostName}.nix;
security.pam.services = {
swaylock = {};
+87
View File
@@ -0,0 +1,87 @@
# This is your system's configuration file.
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
{
inputs,
lib,
config,
pkgs,
...
}:
let
hostname = "nixos";
in
{
# You can import other NixOS modules here
imports = [
# If you want to use modules your own flake exports (from modules/nixos):
# inputs.self.nixosModules.example
# Or modules from other flakes (such as nixos-hardware):
# inputs.hardware.nixosModules.common-cpu-amd
# inputs.hardware.nixosModules.common-ssd
./hardware-configuration.nix
#../common/users/Winter/default.nix
../common/users/dev/default.nix
#../common/global/default.nix
../common/features/DesktopNiri.nix
#../common/features/Applications.nix
#../common/features/servers/minecraft.nix
inputs.home-manager.nixosModules.home-manager
];
nixpkgs = {
# You can add overlays here
overlays = [
# Add overlays your own flake exports (from overlays and pkgs dir):
inputs.self.overlays.additions
inputs.self.overlays.modifications
inputs.self.overlays.unstable-packages
# You can also add overlays exported from other flakes:
# neovim-nightly-overlay.overlays.default
# Or define it inline, for example:
# (final: prev: {
# hi = final.hello.overrideAttrs (oldAttrs: {
# patches = [ ./change-hello-to-hi.patch ];
# });
# })
];
# Configure your nixpkgs instance
config = {
# Disable if you don't want unfree packages
allowUnfree = true;
};
};
# build home-manager with nixos-rebuild and not home-manager command
home-manager = {
extraSpecialArgs = { inherit inputs; };
backupFileExtension = "backup";
users = {
dev = import ../../../home/Ricky/dev/${hostname}.nix; # FIXME
};
};
environment.systemPackages = with pkgs; [
];
networking.hostName = hostname;
# This setups a SSH server. Very important if you're setting up a headless system.
# Feel free to remove if you don't need it.
#Unused, keeping for later reference
services.openssh = {
enable = false;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "25.11";
}
@@ -0,0 +1,31 @@
# 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" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/37e1fcd1-4321-4010-81f7-a3c1443d2a2d";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/AF44-E292";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
@@ -62,7 +62,7 @@ in
extraSpecialArgs = { inherit inputs; };
backupFileExtension = "backup";
users = {
Winter = import ../../home/Winter/${hostname}.nix; # FIXME
Winter = import ../../home/Winter/Winter/${hostname}.nix;
};
};
@@ -31,9 +31,8 @@ in
../common/users/Ekisha/default.nix
../common/users/Tester/default.nix
../common/features/DesktopNiri.nix
../common/features/DesktopKDEPlasma.nix
../common/features/Applications.nix
../common/features/servers/minecraft.nix
../common/servers/minecraft.nix
inputs.home-manager.nixosModules.home-manager
];
@@ -67,12 +66,6 @@ in
home-manager = {
extraSpecialArgs = { inherit inputs; };
backupFileExtension = "backup";
users = {
Winter = import ../../home/Winter/${hostname}.nix;
minecraft = import ../../home/Winter/minecraft.nix;
Ekisha = import ../../home/Ekisha/${hostname}.nix;
Tester = import ../../home/Tester/${hostname}.nix;
};
};
networking.extraHosts = "
+86
View File
@@ -0,0 +1,86 @@
# This is your system's configuration file.
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
{
inputs,
lib,
config,
pkgs,
...
}:
let
hostname = ""; #FIXME, also ensure /home/username/hostname.nix
in
{
# You can import other NixOS modules here
imports = [
# If you want to use modules your own flake exports (from modules/nixos):
# inputs.self.nixosModules.example
# Or modules from other flakes (such as nixos-hardware):
# inputs.hardware.nixosModules.common-cpu-amd
# inputs.hardware.nixosModules.common-ssd
./hardware-configuration.nix
../common/users/Winter/default.nix
#../common/global/default.nix
#../common/features/Desktop.nix
#../common/features/Applications.nix
#../common/features/servers/minecraft.nix
inputs.home-manager.nixosModules.home-manager
];
nixpkgs = {
# You can add overlays here
overlays = [
# Add overlays your own flake exports (from overlays and pkgs dir):
inputs.self.overlays.additions
inputs.self.overlays.modifications
inputs.self.overlays.unstable-packages
# You can also add overlays exported from other flakes:
# neovim-nightly-overlay.overlays.default
# Or define it inline, for example:
# (final: prev: {
# hi = final.hello.overrideAttrs (oldAttrs: {
# patches = [ ./change-hello-to-hi.patch ];
# });
# })
];
# Configure your nixpkgs instance
config = {
# Disable if you don't want unfree packages
allowUnfree = true;
};
};
# build home-manager with nixos-rebuild and not home-manager command
home-manager = {
extraSpecialArgs = { inherit inputs; };
backupFileExtension = "backup";
users = {
EXAMPLE = import ../../../home/EXAMPLE/EXAMPLE/${hostname}.nix; # FIXME
};
};
environment.systemPackages = with pkgs; [
];
networking.hostName = hostname;
# This setups a SSH server. Very important if you're setting up a headless system.
# Feel free to remove if you don't need it.
#Unused, keeping for later reference
services.openssh = {
enable = false;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
#system.stateVersion = "25.11"; #FIXME, should be fine to change on a fresh install
}
@@ -17,15 +17,23 @@
services.blueman.enable = true; #bluetooth
environment.systemPackages = with pkgs; [
# -- Niri extras --
xwayland-satellite
fuzzel
waybar
brightnessctl
playerctl
swaylock
inputs.awww.packages.${pkgs.stdenv.hostPlatform.system}.awww
inputs.skwd-wall.packages.${pkgs.stdenv.hostPlatform.system}.default
];
environment.systemPackages = (
(with pkgs; [
# -- Stable system utilities --
brightnessctl
playerctl
swaylock
])
++ (with pkgs.unstablePkgs; [
# -- Fast-moving Wayland tools --
xwayland-satellite
fuzzel
waybar
])
++ [
# -- External flake inputs --
inputs.awww.packages.${pkgs.stdenv.hostPlatform.system}.awww
inputs.skwd-wall.packages.${pkgs.stdenv.hostPlatform.system}.default
]
);
}
@@ -7,6 +7,11 @@
pkgs,
...
}:
let
repoDomain = "thearcticcircle.ddns.net";
repoPath = "git/WinterEkisha/nix-config";
repoBranch = "main";
in
{
nix = {
settings = {
@@ -24,12 +29,12 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
systemd.sleep.extraConfig = ''
AllowSuspend=no
AllowHibernation=no
AllowHybridSleep=no
AllowSuspendThenHibernate=no
'';
systemd.sleep.settings.Sleep = {
AllowSuspend = "no";
AllowHibernation = "no";
AllowHybridSleep = "no";
AllowSuspendThenHibernate = "no";
};
systemd.tmpfiles.rules = [
"d /home/shared 0777 root root -"
@@ -38,7 +43,7 @@
networking.firewall.enable = true;
time.timeZone = "America/Los_Angeles";
# --- File Manager ---
xdg.mime.enable = true;
services.tumbler.enable = true;
@@ -7,22 +7,12 @@
pkgs,
...
}: {
imports = [
./users/minecraft.nix
];
networking.firewall = {
enable = true;
allowedTCPPorts = [ 25565 25567 ];
allowedUDPPorts = [ 25565 25567];
};
environment.systemPackages = with pkgs; [
pkgs.jdk21
];
users.users = {
minecraft = {
isNormalUser = true;
shell = pkgs.bashInteractive;
openssh.authorizedKeys.keys = [
];
};
};
}
@@ -0,0 +1,26 @@
{
pkgs,
config,
lib,
...
}: let
username = "minecraft"; #FIXME
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in {
users.users.${username} = {
isNormalUser = true;
extraGroups = ifTheyExist [
"minecraft"
];
#packages = [pkgs.home-manager];
};
home-manager.users.${username} = import ../../../../../home/Winter/servers/${username}.nix;
security.pam.services = {
swaylock = {};
${username}.enableGnomeKeyring = true;
};
}
@@ -0,0 +1,29 @@
{
pkgs,
config,
lib,
...
}: let
username = "Ekisha";
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in {
users.users.${username} = {
isNormalUser = true;
extraGroups = ifTheyExist [
"audio"
"libvirtd"
"minecraft"
"video"
];
#packages = [pkgs.home-manager];
};
home-manager.users.${username} = import ../../../../../home/Winter/${username}/${config.networking.hostName}.nix;
security.pam.services = {
swaylock = {};
${username}.enableGnomeKeyring = true;
};
}
@@ -0,0 +1,25 @@
{
pkgs,
config,
lib,
...
}: let
username = "Tester";
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in {
users.users.${username} = {
isNormalUser = true;
extraGroups = ifTheyExist [
];
#packages = [pkgs.home-manager];
};
home-manager.users.${username} = import ../../../../../home/Winter/${username}/${config.networking.hostName}.nix;
security.pam.services = {
swaylock = {};
${username}.enableGnomeKeyring = true;
};
}
@@ -26,9 +26,12 @@ in {
"wheel"
"wireshark"
];
#packages = [pkgs.home-manager];
};
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
home-manager.users.${username} = import ../../../../../home/Winter/${username}/${config.networking.hostName}.nix;
security.pam.services = {
swaylock = {};
+40
View File
@@ -0,0 +1,40 @@
{
pkgs,
config,
lib,
...
}: let
username = ""; #FIXME
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in {
users.users.${username} = {
isNormalUser = true;
extraGroups = ifTheyExist [
"audio"
"deluge"
"docker"
"git"
"i2c"
"libvirtd"
"minecraft"
"mysql"
"wpa_supplicant"
"plugdev"
"podman"
"tss"
"video"
"wheel"
"wireshark"
];
#packages = [pkgs.home-manager];
};
home-manager.users.${username} = import ../../../../../home/Winter/${username}/${config.networking.hostName}.nix;
security.pam.services = {
swaylock = {};
${username}.enableGnomeKeyring = true; #FIXME
};
}