Update NixOS configuration and add new themes

This commit is contained in:
panotaka
2023-12-07 09:37:38 -04:00
parent 310c55b1e6
commit 008cdf0aa2
5 changed files with 52 additions and 46 deletions

View File

@@ -1,8 +1,6 @@
{ {
description = "NixOS configuration of Thomas Syms"; description = "NixOS configuration of Thomas Syms";
nixConfig = { nixConfig = { experimental-features = [ "nix-command" "flakes" ]; };
experimental-features = [ "nix-command" "flakes" ];
};
inputs = { inputs = {
# System # System
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
@@ -17,51 +15,47 @@
# Theming # Theming
stylix.url = "github:danth/stylix"; stylix.url = "github:danth/stylix";
}; };
outputs = outputs = inputs@{ self, nixpkgs, home-manager, ... }:
inputs@{ self, nixpkgs, home-manager, ... }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
in in
{ {
nixosConfigurations = { nixosConfigurations = {
Equinox = nixpkgs.lib.nixosSystem Equinox = nixpkgs.lib.nixosSystem {
{ system = "x86_64-linux";
system = "x86_64-linux"; specialArgs = { inherit inputs; };
specialArgs = { inherit inputs; };
modules = [
./hosts/Equinox
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = inputs;
home-manager.users.panotaka =
{
imports = [
./home
./home/shell
./home/desktop
];
};
}
inputs.stylix.nixosModules.stylix
./themes/targets/all.nix
./themes/sandstone-forest
];
};
};
homeConfigurations.panotaka = home-manager.lib.homeManagerConfiguration
{
inherit pkgs;
modules = [ modules = [
./home ./hosts/Equinox
./home/shell home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = inputs;
home-manager.users.panotaka = {
imports = [ ./home ./home/shell ./home/desktop ];
};
}
inputs.stylix.nixosModules.stylix
./themes/targets/all.nix
./themes/sandstone-forest
]; ];
}; };
};
homeConfigurations.panotaka = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./home
./home/shell
inputs.stylix.homeManagerModules.stylix
./themes/sandstone-forest
./themes/targets/foot.nix
./themes/targets/kitty.nix
./themes/targets/kde.nix
];
};
}; };
} }

View File

@@ -1,8 +1,8 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
services.xserver.enable = true; services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true; services.xserver.displayManager.sddm.enable = true;
services.xserver.displayManager.defaultSession = "plasmawayland"; services.xserver.displayManager.defaultSession = "plasmawayland";
services.xserver.desktopManager.plasma5.enable = true; services.xserver.desktopManager.plasma5.enable = true;
programs.dconf.enable = true; programs.dconf.enable = true;
} }

4
themes/targets/foot.nix Normal file
View File

@@ -0,0 +1,4 @@
{
stylix.autoEnable = false;
stylix.targets.foot.enable = true;
}

4
themes/targets/kde.nix Normal file
View File

@@ -0,0 +1,4 @@
{
stylix.autoEnable = false;
stylix.targets.kde.enable = true;
}

4
themes/targets/kitty.nix Normal file
View File

@@ -0,0 +1,4 @@
{
stylix.autoEnable = false;
stylix.targets.kitty.enable = true;
}