Moved modules into a new Modules subdirectory. Started config of install.sh script. Moved home manager config out of flake.
This commit is contained in:
19
hosts/default/default.nix
Normal file
19
hosts/default/default.nix
Normal file
@ -0,0 +1,19 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware.nix
|
||||
./host-packages.nix
|
||||
];
|
||||
|
||||
# Enable sddm display manager
|
||||
services.displayManager.sddm.enable = true;
|
||||
|
||||
# Sysc-greet display manager
|
||||
services.sysc-greet.enable = false;
|
||||
|
||||
# Keep niri available at system level for ly display manager to detect it
|
||||
programs.niri.package = pkgs.niri;
|
||||
|
||||
# Ensure niri session is available to display manager
|
||||
services.displayManager.sessionPackages = [ pkgs.niri ];
|
||||
}
|
||||
55
hosts/default/hardware.nix
Normal file
55
hosts/default/hardware.nix
Normal file
@ -0,0 +1,55 @@
|
||||
# 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"
|
||||
"usbhid"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/00000000-0000-0000-0000-000000000000";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/0000-0000";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-uuid/00000000-0000-0000-0000-000000000000"; }
|
||||
];
|
||||
|
||||
# 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.enp4s0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
6
hosts/default/host-packages.nix
Normal file
6
hosts/default/host-packages.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Add host-specific packages here
|
||||
];
|
||||
}
|
||||
113
hosts/default/variables.nix
Normal file
113
hosts/default/variables.nix
Normal file
@ -0,0 +1,113 @@
|
||||
{
|
||||
# Git Configuration ( For Pulling Software Repos )
|
||||
gitUsername = "user";
|
||||
gitEmail = "user@example.com";
|
||||
|
||||
# System Configuration
|
||||
timeZone = "America/New_York";
|
||||
|
||||
# Hyprland Settings
|
||||
# ex "monitor=HDMI-A-1, 1920x1080@60,auto,1"
|
||||
# Configure your monitors here - this is host-specific
|
||||
extraMonitorSettings = ''
|
||||
monitor=,preferred,auto,1
|
||||
'';
|
||||
|
||||
# Waybar Settings
|
||||
clock24h = false;
|
||||
|
||||
# Program Options
|
||||
browser = "zen"; # Set Default Browser (google-chrome-stable for google-chrome)
|
||||
terminal = "kitty"; # Set Default System Terminal
|
||||
keyboardLayout = "us";
|
||||
consoleKeyMap = "us";
|
||||
|
||||
# For Nvidia Prime support
|
||||
# Run 'lspci | grep VGA' to find your actual GPU IDs
|
||||
intelID = "PCI:0:2:0"; # Update with your integrated GPU ID
|
||||
nvidiaID = "PCI:1:0:0"; # Update with your NVIDIA GPU ID
|
||||
|
||||
# Enable Nvidia cudaSupport for specific applications (obs-studio)
|
||||
useNvidia = false;
|
||||
|
||||
# Enable NFS
|
||||
enableNFS = true;
|
||||
|
||||
# Enable Printing Support
|
||||
printEnable = false;
|
||||
|
||||
# Enable Thunar GUI File Manager
|
||||
thunarEnable = true;
|
||||
|
||||
# Enable Gaming Support (controllers, gamescope, protonup-qt)
|
||||
gamingSupportEnable = false;
|
||||
|
||||
# Enable Flutter Development Environment
|
||||
flutterdevEnable = false;
|
||||
|
||||
# Enable Stylix System Theming
|
||||
stylixEnable = true;
|
||||
|
||||
# Enable Syncthing File Synchronization
|
||||
syncthingEnable = false;
|
||||
|
||||
# Enable Communication Apps (Teams, Zoom, Telegram, Discord)
|
||||
enableCommunicationApps = false;
|
||||
|
||||
# Enable Extra Browsers (Chromium, Google Chrome)
|
||||
enableExtraBrowsers = false;
|
||||
|
||||
# Enable Productivity Apps (Obsidian, GNOME Boxes, QuickEmu)
|
||||
enableProductivityApps = false;
|
||||
|
||||
# Enable AI Code Editors (cursor, claude-code, gemini-cli)
|
||||
aiCodeEditorsEnable = false;
|
||||
|
||||
# Enable Hyprlock (Hyprland lock screen)
|
||||
# Set to false if using DMS or Noctalia lock screens
|
||||
enableHyprlock = false;
|
||||
|
||||
# Bar/Shell Choice
|
||||
barChoice = "noctalia"; # Options: "dms" or "noctalia"
|
||||
# NOTE: If you change barChoice to "dms", you must run 'dms-install' after rebuilding
|
||||
|
||||
# Shell Choice
|
||||
defaultShell = "zsh"; # Options: "fish" or "zsh"
|
||||
|
||||
# Set Stylix Image
|
||||
#stylixImage = ../../wallpapers/AnimeGirlNightSky.jpg;
|
||||
#stylixImage = ../../wallpapers/nix-wallpaper-stripes-logo.png;
|
||||
#stylixImage = ../../wallpapers/beautifulmountainscape.png;
|
||||
#stylixImage = ../../wallpapers/mountainscapedark.jpg;
|
||||
#stylixImage = ../../wallpapers/Rainnight.jpg;
|
||||
#stylixImage = ../../wallpapers/zaney-wallpaper.jpg;
|
||||
stylixImage = ../../wallpapers/55.png;
|
||||
|
||||
# Set Waybar (temporarily disabled - use DMS or Noctalia)
|
||||
# Includes alternates such as:
|
||||
# Just uncomment the one you want and comment out the others
|
||||
|
||||
#waybarChoice = ../../modules/home/waybar/Jerry-waybars.nix;
|
||||
#waybarChoice = ../../modules/home/waybar/waybar-simple.nix;
|
||||
#waybarChoice = ../../modules/home/waybar/waybar-curved.nix;
|
||||
#waybarChoice = ../../modules/home/waybar/waybar-nekodyke.nix;
|
||||
#waybarChoice = ../../modules/home/waybar/waybar-jerry.nix;
|
||||
#waybarChoice = ../../modules/home/waybar/waybar-ddubs.nix;
|
||||
|
||||
# Set Animation style
|
||||
# Available options are:
|
||||
# animations-def.nix (standard)
|
||||
# animations-end4.nix (end-4 project)
|
||||
# animations-dynamic.nix (ml4w project)
|
||||
# animations-moving.nix (ml4w project)
|
||||
# Just change the name after the - and rebuild
|
||||
animChoice = ../../modules/home/hyprland/animations-end4.nix;
|
||||
#animChoice = ../../modules/home/hyprland/animations-def.nix;
|
||||
#animChoice = ../../modules/home/hyprland/animations-dynamix.nix;
|
||||
# Note: Moving changes window resizing it shrinks then pops back
|
||||
#animChoice = ../../modules/home/hyprland/animations-moving.nix;
|
||||
|
||||
# Startup Applications
|
||||
startupApps = [
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user