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;
};
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
nix.settings.auto-optimise-store = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# 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 {
inherit system;
specialArgs = {
inherit user inputs hyprland system devenv;
inherit user inputs system;
host = {
hostName = "thinkpad";
mainMonitor = "eDP-1";
@ -15,12 +15,13 @@
modules = [
./thinkpad
./configuration.nix
../modules/themes/home.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit user devenv inputs; };
home-manager.extraSpecialArgs = { inherit user inputs; };
home-manager.users.${user} = {
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
auto-cpufreq.enable = true;
blueman.enable = true;
tailscale.enable = true;
};
#temporary bluetooth fix