mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-01-01 01:58:49 +01:00
Adding changes for complete support of multiple host setups
This commit is contained in:
parent
2dbfe4e5b3
commit
abce019203
@ -1,8 +1,8 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, host, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
palette = config.colorScheme.palette;
|
palette = config.colorScheme.palette;
|
||||||
inherit (import ../../options.nix) alacritty;
|
inherit (import ../../hosts/${host}/options.nix) alacritty;
|
||||||
in lib.mkIf (alacritty == true) {
|
in lib.mkIf (alacritty == true) {
|
||||||
programs.alacritty = {
|
programs.alacritty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) flakeDir flakePrev
|
let inherit (import ../../hosts/${host}/options.nix) flakeDir flakePrev
|
||||||
hostname flakeBackup theShell; in
|
hostname flakeBackup theShell; in
|
||||||
lib.mkIf (theShell == "bash") {
|
lib.mkIf (theShell == "bash") {
|
||||||
# Configure Bash
|
# Configure Bash
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) blender; in
|
let inherit (import ../../hosts/${host}/options.nix) blender; in
|
||||||
lib.mkIf (blender == true) {
|
lib.mkIf (blender == true) {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
pkgs.blender-hip
|
pkgs.blender-hip
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{ pkgs, config, lib, inputs, ... }:
|
{ pkgs, config, lib, inputs, host, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
theme = config.colorScheme.palette;
|
theme = config.colorScheme.palette;
|
||||||
hyprplugins = inputs.hyprland-plugins.packages.${pkgs.system};
|
hyprplugins = inputs.hyprland-plugins.packages.${pkgs.system};
|
||||||
inherit (import ../../options.nix)
|
inherit (import ../../hosts/${host}/options.nix)
|
||||||
browser cpuType gpuType
|
browser cpuType gpuType
|
||||||
wallpaperDir borderAnim
|
wallpaperDir borderAnim
|
||||||
theKBDLayout terminal
|
theKBDLayout terminal
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) kdenlive; in
|
let inherit (import ../../hosts/${host}/options.nix) kdenlive; in
|
||||||
lib.mkIf (kdenlive == true) {
|
lib.mkIf (kdenlive == true) {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
pkgs.kdenlive
|
pkgs.kdenlive
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, host, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
palette = config.colorScheme.palette;
|
palette = config.colorScheme.palette;
|
||||||
inherit (import ../../options.nix) alacritty wezterm kitty;
|
inherit (import ../../hosts/${host}/options.nix) alacritty wezterm kitty;
|
||||||
in lib.mkIf (wezterm == false && alacritty == false
|
in lib.mkIf (wezterm == false && alacritty == false
|
||||||
|| kitty == true) {
|
|| kitty == true) {
|
||||||
# Configure Kitty
|
# Configure Kitty
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ pkgs, config, username, ... }:
|
{ pkgs, config, username, host, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (import ../../options.nix)
|
inherit (import ../../hosts/${host}/options.nix)
|
||||||
browser wallpaperDir wallpaperGit flakeDir;
|
browser wallpaperDir wallpaperGit flakeDir;
|
||||||
in {
|
in {
|
||||||
# Install Packages For The User
|
# Install Packages For The User
|
||||||
@ -17,13 +17,13 @@ in {
|
|||||||
(import ./../scripts/squirtle.nix { inherit pkgs; })
|
(import ./../scripts/squirtle.nix { inherit pkgs; })
|
||||||
(import ./../scripts/wallsetter.nix { inherit pkgs; inherit wallpaperDir;
|
(import ./../scripts/wallsetter.nix { inherit pkgs; inherit wallpaperDir;
|
||||||
inherit username; inherit wallpaperGit; })
|
inherit username; inherit wallpaperGit; })
|
||||||
(import ./../scripts/themechange.nix { inherit pkgs; inherit flakeDir; })
|
(import ./../scripts/themechange.nix { inherit pkgs; inherit flakeDir; inherit host; })
|
||||||
(import ./../scripts/theme-selector.nix { inherit pkgs; })
|
(import ./../scripts/theme-selector.nix { inherit pkgs; })
|
||||||
(import ./../scripts/nvidia-offload.nix { inherit pkgs; })
|
(import ./../scripts/nvidia-offload.nix { inherit pkgs; })
|
||||||
(import ./../scripts/web-search.nix { inherit pkgs; })
|
(import ./../scripts/web-search.nix { inherit pkgs; })
|
||||||
(import ./../scripts/rofi-launcher.nix { inherit pkgs; })
|
(import ./../scripts/rofi-launcher.nix { inherit pkgs; })
|
||||||
(import ./../scripts/screenshootin.nix { inherit pkgs; })
|
(import ./../scripts/screenshootin.nix { inherit pkgs; })
|
||||||
(import ./../scripts/list-hypr-bindings.nix { inherit pkgs; })
|
(import ./../scripts/list-hypr-bindings.nix { inherit pkgs; inherit host; })
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.gh.enable = true;
|
programs.gh.enable = true;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ pkgs, config, ... }:
|
{ pkgs, config, host, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (import ../../options.nix) screenshotDir;
|
inherit (import ../../hosts/${host}/options.nix) screenshotDir;
|
||||||
in {
|
in {
|
||||||
home.file.".config/swappy/config".text = ''
|
home.file.".config/swappy/config".text = ''
|
||||||
[Default]
|
[Default]
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, host, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
palette = config.colorScheme.palette;
|
palette = config.colorScheme.palette;
|
||||||
betterTransition = "all 0.3s cubic-bezier(.55,-0.68,.48,1.682)";
|
betterTransition = "all 0.3s cubic-bezier(.55,-0.68,.48,1.682)";
|
||||||
inherit (import ../../options.nix) bar-number clock24h waybarAnim;
|
inherit (import ../../hosts/${host}/options.nix) bar-number clock24h waybarAnim;
|
||||||
in with lib; {
|
in with lib; {
|
||||||
# Configure & Theme Waybar
|
# Configure & Theme Waybar
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, host, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
palette = config.colorScheme.palette;
|
palette = config.colorScheme.palette;
|
||||||
inherit (import ../../options.nix) wezterm;
|
inherit (import ../../hosts/${host}/options.nix) wezterm;
|
||||||
in lib.mkIf (wezterm == true) {
|
in lib.mkIf (wezterm == true) {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
pkgs.wezterm
|
pkgs.wezterm
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) enableZeroAD; in
|
let inherit (import ../../hosts/${host}/options.nix) enableZeroAD; in
|
||||||
lib.mkIf (enableZeroAD == true) {
|
lib.mkIf (enableZeroAD == true) {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
zeroad
|
zeroad
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) flakeDir theShell hostname; in
|
let inherit (import ../../hosts/${host}/options.nix) flakeDir theShell hostname; in
|
||||||
lib.mkIf (theShell == "zsh") {
|
lib.mkIf (theShell == "zsh") {
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, host, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit ( import ../../options.nix ) terminal browser;
|
inherit ( import ../../hosts/${host}/options.nix ) terminal browser;
|
||||||
in
|
in
|
||||||
pkgs.writeShellScriptBin "list-hypr-bindings" ''
|
pkgs.writeShellScriptBin "list-hypr-bindings" ''
|
||||||
yad --width=800 --height=650 \
|
yad --width=800 --height=650 \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, host, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (import ../../options.nix) flakeDir hostname;
|
inherit (import ../../hosts/${host}/options.nix) flakeDir hostname;
|
||||||
in
|
in
|
||||||
pkgs.writeShellScriptBin "themechange" ''
|
pkgs.writeShellScriptBin "themechange" ''
|
||||||
if [[ ! $@ ]];then
|
if [[ ! $@ ]];then
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) gpuType; in
|
let inherit (import ../../hosts/${host}/options.nix) gpuType; in
|
||||||
lib.mkIf ("${gpuType}" == "amd") {
|
lib.mkIf ("${gpuType}" == "amd") {
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, config, username, ... }:
|
{ pkgs, config, username, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) wallpaperDir wallpaperGit; in
|
let inherit (import ../../hosts/${host}/options.nix) wallpaperDir wallpaperGit; in
|
||||||
{
|
{
|
||||||
# system.userActivationScripts = {
|
# system.userActivationScripts = {
|
||||||
# gitwallpapers.text = ''
|
# gitwallpapers.text = ''
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, config, ... }:
|
{ pkgs, config, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) theKBDVariant
|
let inherit (import ../../hosts/${host}/options.nix) theKBDVariant
|
||||||
theKBDLayout theSecondKBDLayout; in
|
theKBDLayout theSecondKBDLayout; in
|
||||||
{
|
{
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) distrobox; in
|
let inherit (import ../../hosts/${host}/options.nix) distrobox; in
|
||||||
lib.mkIf (distrobox == true) {
|
lib.mkIf (distrobox == true) {
|
||||||
virtualisation.podman = {
|
virtualisation.podman = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) flatpak; in
|
let inherit (import ../../hosts/${host}/options.nix) flatpak; in
|
||||||
lib.mkIf (flatpak == true) {
|
lib.mkIf (flatpak == true) {
|
||||||
services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ config, lib, ... }:
|
{ config, lib, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) localHWClock; in
|
let inherit (import ../../hosts/${host}/options.nix) localHWClock; in
|
||||||
lib.mkIf (localHWClock == true) {
|
lib.mkIf (localHWClock == true) {
|
||||||
time.hardwareClockInLocalTime = true;
|
time.hardwareClockInLocalTime = true;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) gpuType; in
|
let inherit (import ../../hosts/${host}/options.nix) gpuType; in
|
||||||
lib.mkIf ("${gpuType}" == "intel-amd") {
|
lib.mkIf ("${gpuType}" == "intel-amd") {
|
||||||
nixpkgs.config.packageOverrides =
|
nixpkgs.config.packageOverrides =
|
||||||
pkgs: {
|
pkgs: {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) gpuType; in
|
let inherit (import ../../hosts/${host}/options.nix) gpuType; in
|
||||||
lib.mkIf ("${gpuType}" == "intel") {
|
lib.mkIf ("${gpuType}" == "intel") {
|
||||||
nixpkgs.config.packageOverrides =
|
nixpkgs.config.packageOverrides =
|
||||||
pkgs: {
|
pkgs: {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) intel-bus-id nvidia-bus-id gpuType; in
|
let inherit (import ../../hosts/${host}/options.nix) intel-bus-id nvidia-bus-id gpuType; in
|
||||||
lib.mkIf ("${gpuType}" == "intel-nvidia") {
|
lib.mkIf ("${gpuType}" == "intel-nvidia") {
|
||||||
nixpkgs.config.packageOverrides =
|
nixpkgs.config.packageOverrides =
|
||||||
pkgs: {
|
pkgs: {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../../options.nix) theKernel; in
|
let inherit (import ../../../hosts/${host}/options.nix) theKernel; in
|
||||||
lib.mkIf (theKernel == "default") {
|
lib.mkIf (theKernel == "default") {
|
||||||
boot.kernelPackages = pkgs.linuxPackages;
|
boot.kernelPackages = pkgs.linuxPackages;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../../options.nix) theKernel; in
|
let inherit (import ../../../hosts/${host}/options.nix) theKernel; in
|
||||||
lib.mkIf (theKernel == "latest") {
|
lib.mkIf (theKernel == "latest") {
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../../options.nix) theKernel; in
|
let inherit (import ../../../hosts/${host}/options.nix) theKernel; in
|
||||||
lib.mkIf (theKernel == "lqx") {
|
lib.mkIf (theKernel == "lqx") {
|
||||||
boot.kernelPackages = pkgs.linuxPackages_lqx;
|
boot.kernelPackages = pkgs.linuxPackages_lqx;
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
# For the adventurous people
|
# For the adventurous people
|
||||||
# It's not listed in the list of possible options,
|
# It's not listed in the list of possible options,
|
||||||
# but the ones who want to try it can do so.
|
# but the ones who want to try it can do so.
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../../options.nix) theKernel; in
|
let inherit (import ../../../hosts/${host}/options.nix) theKernel; in
|
||||||
lib.mkIf (theKernel == "testing") {
|
lib.mkIf (theKernel == "testing") {
|
||||||
boot.kernelPackages = pkgs.linuxPackages_testing;
|
boot.kernelPackages = pkgs.linuxPackages_testing;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../../options.nix) theKernel; in
|
let inherit (import ../../../hosts/${host}/options.nix) theKernel; in
|
||||||
lib.mkIf (theKernel == "xanmod") {
|
lib.mkIf (theKernel == "xanmod") {
|
||||||
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
|
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../../options.nix) theKernel; in
|
let inherit (import ../../../hosts/${host}/options.nix) theKernel; in
|
||||||
lib.mkIf (theKernel == "zen") {
|
lib.mkIf (theKernel == "zen") {
|
||||||
boot.kernelPackages = pkgs.linuxPackages_zen;
|
boot.kernelPackages = pkgs.linuxPackages_zen;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) logitech; in
|
let inherit (import ../../hosts/${host}/options.nix) logitech; in
|
||||||
lib.mkIf (logitech == true) {
|
lib.mkIf (logitech == true) {
|
||||||
hardware.logitech.wireless.enable = true;
|
hardware.logitech.wireless.enable = true;
|
||||||
hardware.logitech.wireless.enableGraphical = true;
|
hardware.logitech.wireless.enableGraphical = true;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ config, lib, ... }:
|
{ config, lib, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) nfs nfsMountPoint nfsDevice; in
|
let inherit (import ../../hosts/${host}/options.nix) nfs nfsMountPoint nfsDevice; in
|
||||||
lib.mkIf (nfs == true) {
|
lib.mkIf (nfs == true) {
|
||||||
fileSystems."${nfsMountPoint}" = {
|
fileSystems."${nfsMountPoint}" = {
|
||||||
device = "${nfsDevice}";
|
device = "${nfsDevice}";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ config, lib, options, ... }:
|
{ config, lib, options, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) ntp; in
|
let inherit (import ../../hosts/${host}/options.nix) ntp; in
|
||||||
lib.mkIf (ntp == true) {
|
lib.mkIf (ntp == true) {
|
||||||
networking.timeServers = options.networking.timeServers.default ++ [ "pool.ntp.org" ];
|
networking.timeServers = options.networking.timeServers.default ++ [ "pool.ntp.org" ];
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, config, lib, gpuType, ... }:
|
{ pkgs, config, lib, gpuType, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) gpuType; in
|
let inherit (import ../../hosts/${host}/options.nix) gpuType; in
|
||||||
lib.mkIf ("${gpuType}" == "nvidia") {
|
lib.mkIf ("${gpuType}" == "nvidia") {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
nvtop
|
nvtop
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ config, pkgs, lib, username, ... }:
|
{ config, pkgs, lib, username, host, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit ( import ../../options.nix ) username;
|
inherit ( import ../../hosts/${host}/options.nix ) username;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
environment.persistence."/nix/persist" = {
|
environment.persistence."/nix/persist" = {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ config, lib, pkgs, username, ... }:
|
{ config, lib, pkgs, username, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) printer; in
|
let inherit (import ../../hosts/${host}/options.nix) printer; in
|
||||||
lib.mkIf (printer == true) {
|
lib.mkIf (printer == true) {
|
||||||
services = {
|
services = {
|
||||||
printing.enable = true;
|
printing.enable = true;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, host, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (import ../../options.nix) python;
|
inherit (import ../../hosts/${host}/options.nix) python;
|
||||||
my-python-packages = ps: with ps; [
|
my-python-packages = ps: with ps; [
|
||||||
pandas
|
pandas
|
||||||
requests
|
requests
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) syncthing username userHome; in
|
let inherit (import ../../hosts/${host}/options.nix) syncthing username userHome; in
|
||||||
lib.mkIf (syncthing == true) {
|
lib.mkIf (syncthing == true) {
|
||||||
services = {
|
services = {
|
||||||
syncthing = {
|
syncthing = {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, host, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) cpuType; in
|
let inherit (import ../../hosts/${host}/options.nix) cpuType; in
|
||||||
lib.mkIf ("${cpuType}" == "vm") {
|
lib.mkIf ("${cpuType}" == "vm") {
|
||||||
services.qemuGuest.enable = true;
|
services.qemuGuest.enable = true;
|
||||||
services.spice-vdagentd.enable = true;
|
services.spice-vdagentd.enable = true;
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
host = "hyprnix";
|
host = "hyprnix";
|
||||||
inherit (import ./${host}/options.nix) username hostname;
|
inherit (import ./hosts/${host}/options.nix) username hostname;
|
||||||
|
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
4
home.nix
4
home.nix
@ -1,7 +1,7 @@
|
|||||||
{ config, pkgs, inputs, username,
|
{ config, pkgs, inputs, username,
|
||||||
gtkThemeFromScheme, ... }:
|
host, gtkThemeFromScheme, ... }:
|
||||||
let
|
let
|
||||||
inherit (import ./options.nix)
|
inherit (import ./hosts/${host}/options.nix)
|
||||||
gitUsername gitEmail theme browser
|
gitUsername gitEmail theme browser
|
||||||
wallpaperDir wallpaperGit flakeDir
|
wallpaperDir wallpaperGit flakeDir
|
||||||
waybarStyle;
|
waybarStyle;
|
||||||
|
51
hosts/default/hardware.nix
Normal file
51
hosts/default/hardware.nix
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
# 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" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/362d23fa-3cbd-4ee1-9c27-ea8c30242ec3";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/home/zaney/Documents" =
|
||||||
|
{ device = "/dev/disk/by-uuid/35f6d96f-0837-4868-8ce5-8e1df5e3b2f3";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/home/zaney/Videos" =
|
||||||
|
{ device = "/dev/disk/by-uuid/cbe1beaf-6c7f-4251-ad5c-2897aecc367d";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.initrd.luks.devices."luks-cdf913d6-7149-4a8f-9461-61c394b2f5af".device = "/dev/disk/by-uuid/cdf913d6-7149-4a8f-9461-61c394b2f5af";
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/C598-AF28";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices =
|
||||||
|
[ { device = "/dev/disk/by-uuid/8160cef0-c5eb-4caa-9ef5-56a5b4eb51b8"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
# 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.enp7s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
91
hosts/default/options.nix
Normal file
91
hosts/default/options.nix
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
# PLEASE READ THE WIKI FOR DETERMINING
|
||||||
|
# WHAT TO PUT HERE AS OPTIONS.
|
||||||
|
# https://gitlab.com/Zaney/zaneyos/-/wikis/Setting-Options
|
||||||
|
|
||||||
|
let
|
||||||
|
setUsername = "defaultuser";
|
||||||
|
setHostname = "nixos";
|
||||||
|
in {
|
||||||
|
# No Change Needed Below
|
||||||
|
username = "${setUsername}";
|
||||||
|
hostname = "${setHostname}";
|
||||||
|
userHome = "/home/${setUsername}";
|
||||||
|
flakeDir = "/home/${setUsername}/zaneyos";
|
||||||
|
wallpaperGit = "https://gitlab.com/Zaney/my-wallpapers.git"; # Can be changed IF you know what your doing
|
||||||
|
wallpaperDir = "/home/${setUsername}/Pictures/Wallpapers";
|
||||||
|
screenshotDir = "/home/${setUsername}/Pictures/Screenshots";
|
||||||
|
flakePrev = "/home/${setUsername}/.zaneyos-previous";
|
||||||
|
flakeBackup = "/home/${setUsername}/.zaneyos-backup";
|
||||||
|
|
||||||
|
# Git Configuration ( For Pulling Software Repos )
|
||||||
|
gitUsername = "John Smith";
|
||||||
|
gitEmail = "johnsmith@gmail.com";
|
||||||
|
|
||||||
|
# Base16 Theme
|
||||||
|
theme = "atelier-cave";
|
||||||
|
|
||||||
|
# Hyprland Settings
|
||||||
|
borderAnim = true; # Enable / Disable Hyprland Border Animation
|
||||||
|
extraMonitorSettings = "";
|
||||||
|
|
||||||
|
# Waybar Settings
|
||||||
|
waybarAnim = true; # Enable / Disable Waybar Animation CSS
|
||||||
|
bar-number = true; # Enable / Disable Workspace Numbers In Waybar
|
||||||
|
|
||||||
|
# System Settings
|
||||||
|
clock24h = false;
|
||||||
|
theLocale = "en_US.UTF-8";
|
||||||
|
theKBDLayout = "us";
|
||||||
|
theSecondKBDLayout = "de";
|
||||||
|
theKBDVariant = "";
|
||||||
|
theLCVariables = "en_US.UTF-8";
|
||||||
|
theTimezone = "America/Chicago";
|
||||||
|
theShell = "bash"; # Possible options: bash, zsh
|
||||||
|
theKernel = "zen"; # Possible options: default, latest, lqx, xanmod, zen
|
||||||
|
sdl-videodriver = "x11"; # Either x11 or wayland ONLY. Games might require x11 set here
|
||||||
|
# For Hybrid Systems intel-nvidia
|
||||||
|
# Should Be Used As gpuType
|
||||||
|
cpuType = "intel";
|
||||||
|
gpuType = "intel";
|
||||||
|
|
||||||
|
# Nvidia Hybrid Devices ONLY NEEDED FOR HYBRID SYSTEMS!
|
||||||
|
intel-bus-id = "PCI:1:0:0";
|
||||||
|
nvidia-bus-id = "PCI:0:2:0";
|
||||||
|
|
||||||
|
# Enable / Setup NFS
|
||||||
|
nfs = false;
|
||||||
|
nfsMountPoint = "/mnt/nas";
|
||||||
|
nfsDevice = "nas:/volume1/nas";
|
||||||
|
|
||||||
|
# NTP & HWClock Settings
|
||||||
|
ntp = true;
|
||||||
|
localHWClock = false;
|
||||||
|
|
||||||
|
# Enable Printer & Scanner Support
|
||||||
|
printer = true;
|
||||||
|
|
||||||
|
# Program Options
|
||||||
|
browser = "firefox"; # Install & Set Default Browser
|
||||||
|
terminal = "kitty"; # Set Default System Terminal
|
||||||
|
distrobox = false;
|
||||||
|
flatpak = false;
|
||||||
|
kdenlive = false;
|
||||||
|
blender = false;
|
||||||
|
enableZeroAD = false;
|
||||||
|
|
||||||
|
# Enable Support For
|
||||||
|
# Logitech Devices
|
||||||
|
logitech = false;
|
||||||
|
|
||||||
|
# Enable Terminals ( If You Disable All You Get Kitty )
|
||||||
|
wezterm = false;
|
||||||
|
alacritty = false;
|
||||||
|
kitty = true;
|
||||||
|
|
||||||
|
# Enable Python & PyCharm
|
||||||
|
python = false;
|
||||||
|
|
||||||
|
# Enable SyncThing
|
||||||
|
syncthing = false;
|
||||||
|
|
||||||
|
}
|
@ -2,7 +2,7 @@
|
|||||||
username, hostname, host, ... }:
|
username, hostname, host, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (import ./options.nix)
|
inherit (import ./hosts/${host}/options.nix)
|
||||||
theLocale theTimezone gitUsername
|
theLocale theTimezone gitUsername
|
||||||
theShell wallpaperDir wallpaperGit
|
theShell wallpaperDir wallpaperGit
|
||||||
theLCVariables theKBDLayout flakeDir
|
theLCVariables theKBDLayout flakeDir
|
||||||
@ -10,7 +10,7 @@ let
|
|||||||
in {
|
in {
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./${host}/hardware.nix
|
./hosts/${host}/hardware.nix
|
||||||
./config/system
|
./config/system
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user