This commit is contained in:
2026-03-27 16:45:50 +01:00
parent 42b94d8bb4
commit c16c312b06
10 changed files with 76 additions and 297 deletions

View File

@@ -1,39 +0,0 @@
_: {
flake.nixosModules.boot = {pkgs, config, lib, ...}: {
boot = {
kernelPackages = pkgs.linuxPackages_zen;
kernelModules = ["v4l2loopback"];
extraModulePackages = [config.boot.kernelPackages.v4l2loopback];
kernel.sysctl = {
"vm.max_map_count" = 2147483642;
};
loader = {
efi.canTouchEfiVariables = true;
limine = {
enable = true;
style = {
wallpapers = [
./../../wallpapers/attack-on-titan-mikasa-ackerman.jpg
];
wallpaperStyle = lib.mkForce "centered";
backdrop = "${config.stylix.base16Scheme.base00}";
interface = {
branding = "GarandOS Bootloader";
resolution = "1920x1080";
};
};
};
};
# Appimage Support
binfmt.registrations.appimage = {
wrapInterpreterInShell = false;
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
recognitionType = "magic";
offset = 0;
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
magicOrExtension = ''\x7fELF....AI\x02'';
};
plymouth.enable = true;
};
};
}

View File

@@ -0,0 +1,12 @@
{
self,
inputs,
...
}: {
flake.nixosConfigurations."Garand-Desktop" = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = with self.modules.nixos; [
variables
];
};
}

View File

@@ -0,0 +1,64 @@
{self, inputs, ...}: {
flake.modules.nixos.variables = {
# CPU Architecture
# Available options: "x86_64-linux", "aarch64-linux", etc.
system = "x86_64-linux";
# Host Configuration
host = "Garand-Desktop";
username = "garand_plg";
# GPU Profile
# Available options: "amd", "nvidia", "nvidia-laptop", "intel", "vm"
profile = "nvidia";
# Git Configuration ( For Pulling Software Repos )
gitUsername = "GarandPLG";
gitEmail = "garandplg@garandplg.com";
# Hyprland Settings
# Examples:
# extraMonitorSettings = "monitor = Virtual-1,1920x1080@60,auto,1";
# extraMonitorSettings = "monitor = HDMI-A-1,1920x1080@60,auto,1";
# You can configure multiple monitors.
# Inside the quotes, create a new line for each monitor.
extraMonitorSettings = "monitor = DP-1,1920x1080@144,auto,1";
keyboardLayout = "pl";
consoleKeyMap = "pl";
location = "Żywiec, PL";
# For Nvidia Prime support
intelID = "PCI:1:0:0";
nvidiaID = "PCI:0:2:0";
# Enable NFS
enableNFS = true;
# Enable Printing Support
printEnable = true;
# Set Stylix Image
# This will set your color palette
# Default background
# Add new images to ~/garandos/wallpapers
stylixImage = "attack-on-titan-mikasa-ackerman.jpg";
#stylixImage = "DW_Pacts.jpg";
#stylixImage = "edward-elric-fullmetal-alchemist.jpg";
#stylixImage = "fire-nation.jpg";
#stylixImage = "four-elements.jpg";
#stylixImage = "fullmetal-alchemist-5120x2880-10399.png";
#stylixImage = "Grounded_Wallpaper_4K.jpg";
#stylixImage = "jablon.jpg";
#stylixImage = "rammstein-log-two.jpg";
#stylixImage = "rammstein-logo-one.jpg";
#stylixImage = "rammstein-logo-three.jpg";
#stylixImage = "rammstein-one.jpg";
#stylixImage = "1346530.jpeg";
# Set network hostId if required (needed for zfs)
# Otherwise leave as-is
hostId = "5ab03f50";
};
}

10
modules/parts.nix Normal file
View File

@@ -0,0 +1,10 @@
{
config = {
systems = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
];
};
}