trying to generalize names

This commit is contained in:
Julian Sutter 2023-01-05 23:26:57 -08:00
parent 4166de0850
commit d1478d93c4
3 changed files with 67 additions and 59 deletions

10
systems/aurora.nix Normal file
View file

@ -0,0 +1,10 @@
{ config, pkgs, ... }:
{
imports =
[
# /etc/nixos/hardware-configuration.nix
./user-jsutter.nix
];
}

View file

@ -1,16 +1,43 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
imports =
[
/etc/nixos/hardware-configuration.nix
/etc/nixos/user-jsutter.nix
# /etc/nixos/hardware-configuration.nix
# /etc/nixos/user-jsutter.nix
];
users.users.jsutter = {
isNormalUser = true;
description = "Julian Sutter";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
firefox
git
tor-browser-bundle-bin
nextcloud-client
vlc
deluge
steam
vmware-horizon-client
kleopatra
pinentry
arc-theme
zoom-us
slack
vscodium
];
};
# Options for Steam
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
};
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
@ -22,19 +49,6 @@
# Flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Power Stuff
services.power-profiles-daemon.enable = false;
services.tlp = {
enable = true;
settings = {
CPU_BOOST_ON_BAT = 0;
CPU_SCALING_GOVERNOR_ON_BATTERY = "powersave";
START_CHARGE_THRESH_BAT0 = 90;
STOP_CHARGE_THRESH_BAT0 = 97;
RUNTIME_PM_ON_BAT = "auto";
};
};
networking.networkmanager.enable = true;
# Set your time zone.
@ -82,35 +96,6 @@
pulse.enable = true;
};
# Define a user account. Don't forget to set a password with passwd.
users.users.jsutter = {
isNormalUser = true;
description = "Julian Sutter";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
firefox
git
tor-browser-bundle-bin
nextcloud-client
vlc
deluge
steam
vmware-horizon-client
kleopatra
pinentry
arc-theme
zoom-us
slack
vscodium
];
};
# Options for Steam
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
};
programs.java.enable = true;
# Allow unfree packages
@ -149,19 +134,8 @@ services.pcscd.enable = true;
enableSSHSupport = true;
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
system.stateVersion = "22.11"; # Did you read the comment?
system.stateVersion = "23.05"; # Did you read the comment?
}

24
systems/framework.nix Normal file
View file

@ -0,0 +1,24 @@
{ config, pkgs, ... }:
{
imports =
[
# /etc/nixos/hardware-configuration.nix
/etc/nixos/user-jsutter.nix
];
# Power Stuff
services.power-profiles-daemon.enable = false;
services.tlp = {
enable = true;
settings = {
CPU_BOOST_ON_BAT = 0;
CPU_SCALING_GOVERNOR_ON_BATTERY = "powersave";
START_CHARGE_THRESH_BAT0 = 90;
STOP_CHARGE_THRESH_BAT0 = 97;
RUNTIME_PM_ON_BAT = "auto";
};
};
}