This commit is contained in:
Glen Goodwin 2023-09-19 12:03:27 -04:00
parent e04a654f94
commit cd74c7b0d4
5 changed files with 22 additions and 13 deletions

View file

@ -99,6 +99,14 @@
wireplumber.enable = true; wireplumber.enable = true;
}; };
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
nix.settings.auto-optimise-store = true;
# Open ports in the firewall. # Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];

View file

@ -1,11 +1,11 @@
{ lib, inputs, system, home-manager, user, hyprland, devenv, ... }: { lib, inputs, system, home-manager, user, ... }:
{ {
thinkpad = lib.nixosSystem { thinkpad = lib.nixosSystem {
inherit system; inherit system;
specialArgs = { specialArgs = {
inherit user inputs hyprland system devenv; inherit user inputs system;
host = { host = {
hostName = "thinkpad"; hostName = "thinkpad";
mainMonitor = "eDP-1"; mainMonitor = "eDP-1";
@ -15,12 +15,13 @@
modules = [ modules = [
./thinkpad ./thinkpad
./configuration.nix ./configuration.nix
../modules/themes/home.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit user devenv inputs; }; home-manager.extraSpecialArgs = { inherit user inputs; };
home-manager.users.${user} = { home-manager.users.${user} = {
imports = [ (import ./home.nix) ] ++ [ (import ./thinkpad/home.nix) ]; imports = [ (import ./home.nix) ] ++ [ (import ./thinkpad/home.nix) ];

View file

@ -31,6 +31,7 @@
#logind.lidSwitch = "ignore"; # Laptop does not go to sleep when lid is closed #logind.lidSwitch = "ignore"; # Laptop does not go to sleep when lid is closed
auto-cpufreq.enable = true; auto-cpufreq.enable = true;
blueman.enable = true; blueman.enable = true;
tailscale.enable = true;
}; };
#temporary bluetooth fix #temporary bluetooth fix

View file

@ -20,13 +20,13 @@
font-family: FiraCode Nerd Font Mono; font-family: FiraCode Nerd Font Mono;
/*font-weight: bold;*/ /*font-weight: bold;*/
font-size: 12px; font-size: 12px;
text-shadow: 0px 0px 5px #000000; text-shadow: 0px 0px 5px #${config.colorScheme.colors.base00};
} }
button:hover { button:hover {
background-color: rgba(80,100,100,0.4); background-color: rgba(80,100,100,0.4);
} }
window#waybar { window#waybar {
background-color: rgba(0,0,0,0.8); background-color: #${config.colorScheme.colors.base00};
transition-property: background-color; transition-property: background-color;
transition-duration: .5s; transition-duration: .5s;
border-bottom: none; border-bottom: none;
@ -50,7 +50,7 @@
#battery, #battery,
#custom-ds4, #custom-ds4,
#tray { #tray {
color: #999999; color: #${config.colorScheme.colors.base09};
background-clip: padding-box; background-clip: padding-box;
} }
#custom-menu { #custom-menu {
@ -60,18 +60,18 @@
#workspaces button { #workspaces button {
padding: 0px 5px; padding: 0px 5px;
min-width: 5px; min-width: 5px;
color: rgba(255,255,255,0.8); color: #${config.colorScheme.colors.base09};
} }
#workspaces button:hover { #workspaces button:hover {
background-color: rgba(0,0,0,0.2); background-color: #${config.colorScheme.colors.base02};
} }
/*#workspaces button.focused {*/ /*#workspaces button.focused {*/
#workspaces button.active { #workspaces button.active {
color: rgba(255,255,255,0.8); color: #${config.colorScheme.colors.base0C};
background-color: rgba(80,100,100,0.4); background-color: #${config.colorScheme.colors.base02};
} }
#workspaces button.visible { #workspaces button.visible {
color: #ccffff; color: #${config.colorScheme.colors.base0E};
} }
#workspaces button.hidden { #workspaces button.hidden {
color: #999999; color: #999999;

View file

@ -3,8 +3,7 @@
{ {
imports = [ inputs.nix-colors.homeManagerModules.default ]; imports = [ inputs.nix-colors.homeManagerModules.default ];
# choose a theme from here https://github.com/tinted-theming/base16-schemes/tree/main # choose a theme from here https://github.com/tinted-theming/base16-schemes/tree/main
#colorScheme = inputs.nix-colors.colorSchemes.gruvbox-dark-medium; colorScheme = inputs.nix-colors.colorSchemes.everforest;
colorScheme = inputs.nix-colors.colorSchemes.gruvbox-dark-hard;