server config builds now

This commit is contained in:
pagedmov
2024-11-02 11:54:44 -04:00
parent 2bb66a88bb
commit c216b02858
14 changed files with 15 additions and 17 deletions

View File

@@ -102,7 +102,7 @@
xenon = nixpkgs.lib.nixosSystem { xenon = nixpkgs.lib.nixosSystem {
specialArgs = { specialArgs = {
host = "xenon"; host = "xenon";
inherit self inputs username; inherit self inputs scheme username;
}; };
modules = [ modules = [
./hosts/server/config.nix ./hosts/server/config.nix

View File

@@ -1,6 +1,4 @@
{pkgs, ...}: { {pkgs, ...}: {
system.stateVersion = "24.05";
nixpkgs.config.allowUnfree = true;
imports = [ imports = [
./hardware.nix ./hardware.nix
./home.nix ./home.nix

View File

@@ -6,7 +6,7 @@
username, username,
wallpaper, wallpaper,
lib, lib,
scheme, scheme ? {},
config, config,
... ...
}: let }: let
@@ -22,7 +22,6 @@ in {
${username} = { ${username} = {
programs.home-manager.enable = true; programs.home-manager.enable = true;
imports = [ imports = [
inputs.spicetify-nix.homeManagerModules.default
inputs.self.outputs.homeManagerModules.default inputs.self.outputs.homeManagerModules.default
]; ];

View File

@@ -1,6 +1,4 @@
{pkgs, config, ...}: { {pkgs, config, ...}: {
system.stateVersion = "24.05";
nixpkgs.config.allowUnfree = true;
imports = [ imports = [
./hardware.nix ./hardware.nix
./home.nix ./home.nix

View File

@@ -6,7 +6,7 @@
username, username,
wallpaper, wallpaper,
lib, lib,
scheme, scheme ? {},
config, config,
... ...
}: let }: let
@@ -22,7 +22,6 @@ in {
${username} = { ${username} = {
programs.home-manager.enable = true; programs.home-manager.enable = true;
imports = [ imports = [
inputs.spicetify-nix.homeManagerModules.default
inputs.self.outputs.homeManagerModules.default inputs.self.outputs.homeManagerModules.default
]; ];

View File

@@ -4,6 +4,7 @@
self, self,
inputs, inputs,
lib, lib,
scheme,
username, username,
config, config,
... ...
@@ -16,7 +17,7 @@ in {
useUserPackages = true; useUserPackages = true;
useGlobalPkgs = true; useGlobalPkgs = true;
backupFileExtension = "backup"; backupFileExtension = "backup";
extraSpecialArgs = { inherit self inputs host username nur; }; extraSpecialArgs = { inherit self inputs scheme host username nur; };
users = { users = {
${username} = { ${username} = {
programs.home-manager.enable = true; programs.home-manager.enable = true;

View File

@@ -1,6 +1,7 @@
{lib, config, pkgs, inputs, scheme, ... }: let {lib, config, pkgs, inputs, scheme ? {}, ... }: let
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system}; spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
in { in {
imports = [inputs.spicetify-nix.homeManagerModules.default];
options = { options = {
spicetifyConfig.enable = lib.mkEnableOption "enable my spicetify options"; spicetifyConfig.enable = lib.mkEnableOption "enable my spicetify options";
}; };

View File

@@ -1,4 +1,4 @@
{lib, config, pkgs, scheme, wallpaper, ... }: { {lib, config, pkgs, scheme ? {}, wallpaper, ... }: {
options = { options = {
stylixHomeConfig.enable = lib.mkEnableOption "enables my stylix Home-Manager options"; stylixHomeConfig.enable = lib.mkEnableOption "enables my stylix Home-Manager options";
}; };

View File

@@ -1,4 +1,4 @@
{pkgs, scheme, host, lib, config, ...}: {pkgs, scheme ? {}, host, lib, config, ...}:
let let
desktop = host == "oganesson"; desktop = host == "oganesson";

View File

@@ -1,4 +1,4 @@
{lib, config, pkgs, scheme, ... }: { {lib, config, pkgs, scheme ? {}, ... }: {
options = { options = {
kittyConfig.enable = lib.mkEnableOption "enables my kitty configuration"; kittyConfig.enable = lib.mkEnableOption "enables my kitty configuration";
}; };

View File

@@ -1,7 +1,7 @@
{ {
config, config,
inputs, inputs,
scheme, scheme ? {},
wallpaper, wallpaper,
username, username,
host, host,

View File

@@ -3,6 +3,8 @@
nixSettings.enable = lib.mkEnableOption "enables my nixos settings"; nixSettings.enable = lib.mkEnableOption "enables my nixos settings";
}; };
config = lib.mkIf config.nixSettings.enable { config = lib.mkIf config.nixSettings.enable {
system.stateVersion = "24.05";
nixpkgs.config.allowUnfree = true;
nix = { nix = {
settings = { settings = {
auto-optimise-store = true; auto-optimise-store = true;

View File

@@ -1,6 +1,6 @@
{ {
pkgs, pkgs,
scheme, scheme ? {},
wallpaper, wallpaper,
lib, lib,
config, config,

View File

@@ -1,5 +1,5 @@
{ {
scheme, scheme ? {},
config, config,
... ...
}: { }: {