many changes: prepare to allow multiple users
This commit is contained in:
parent
c31864133e
commit
fab570dd29
42 changed files with 80 additions and 158 deletions
|
|
@ -7,6 +7,13 @@
|
|||
...
|
||||
}:
|
||||
{
|
||||
# the user to activate
|
||||
userOptions = {
|
||||
name = "Sean Kovacs";
|
||||
username = "sckova";
|
||||
email = "kovacsmillio@gmail.com";
|
||||
};
|
||||
|
||||
boot = {
|
||||
plymouth.enable = true;
|
||||
plymouth.logo = "${pkgs.nixos-icons}/share/icons/hicolor/64x64/apps/nix-snowflake-white.png";
|
||||
|
|
@ -49,19 +56,6 @@
|
|||
};
|
||||
|
||||
programs = {
|
||||
gamescope = {
|
||||
enable = true;
|
||||
capSysNice = false;
|
||||
args = [
|
||||
"--output-width 3840"
|
||||
"--nested-width 3840"
|
||||
"--output-height 2160"
|
||||
"--nested-height 2160"
|
||||
"--expose-wayland"
|
||||
"--fullscreen"
|
||||
];
|
||||
};
|
||||
gamemode.enable = true;
|
||||
gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
|
|
@ -107,7 +101,7 @@
|
|||
services = {
|
||||
displayManager = {
|
||||
autoLogin.enable = true;
|
||||
autoLogin.user = "sckova";
|
||||
autoLogin.user = config.userOptions.username;
|
||||
defaultSession = "niri";
|
||||
sddm.enable = true;
|
||||
sddm.wayland.enable = true;
|
||||
|
|
@ -128,17 +122,6 @@
|
|||
upower.enable = true;
|
||||
power-profiles-daemon.enable = true;
|
||||
openssh.enable = true;
|
||||
ananicy = {
|
||||
enable = true;
|
||||
package = pkgs.ananicy-cpp;
|
||||
rulesProvider = pkgs.ananicy-cpp;
|
||||
extraRules = [
|
||||
{
|
||||
"name" = "gamescope";
|
||||
"nice" = -20;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
|
|||
37
system/games/default.nix
Normal file
37
system/games/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs = {
|
||||
gamescope = {
|
||||
enable = true;
|
||||
capSysNice = false;
|
||||
args = [
|
||||
"--output-width 3840"
|
||||
"--nested-width 3840"
|
||||
"--output-height 2160"
|
||||
"--nested-height 2160"
|
||||
"--expose-wayland"
|
||||
"--fullscreen"
|
||||
];
|
||||
};
|
||||
gamemode.enable = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
ananicy = {
|
||||
enable = true;
|
||||
package = pkgs.ananicy-cpp;
|
||||
rulesProvider = pkgs.ananicy-cpp;
|
||||
extraRules = [
|
||||
{
|
||||
"name" = "gamescope";
|
||||
"nice" = -20;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
];
|
||||
|
||||
# enable ddcutil
|
||||
users.users.sckova.extraGroups = [ "i2c" ];
|
||||
users.users.${config.userOptions.username}.extraGroups = [ "i2c" ];
|
||||
boot.extraModulePackages = [ config.boot.kernelPackages.ddcci-driver ];
|
||||
boot.kernelModules = [
|
||||
"i2c-dev"
|
||||
|
|
@ -78,7 +78,7 @@
|
|||
# i don't even remember what this does or why i added it
|
||||
systemd.tmpfiles.rules = [
|
||||
"L+ /var/lib/qemu/firmware - - - - ${pkgs.qemu}/share/qemu/firmware"
|
||||
"d /mnt/storage 0775 sckova users - -"
|
||||
"d /mnt/storage 0775 ${config.userOptions.username} users - -"
|
||||
];
|
||||
|
||||
services.factorio = {
|
||||
|
|
@ -90,6 +90,6 @@
|
|||
# bind = "[::]"; # support IPv6
|
||||
game-name = "kova's minecraft";
|
||||
game-password = "ThisIsASuperSecurePasswordThatNobodyWillGuess";
|
||||
admins = [ "sckova" ];
|
||||
admins = [ config.userOptions.username ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
|
|
@ -46,7 +47,7 @@ in
|
|||
setSocketVariable = true;
|
||||
};
|
||||
};
|
||||
users.users.sckova.extraGroups = [ "docker" ];
|
||||
users.users.${config.userOptions.username}.extraGroups = [ "docker" ];
|
||||
|
||||
hardware.asahi = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
home-manager.users.sckova = {
|
||||
imports = [ ];
|
||||
};
|
||||
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
||||
virtualisation.vmVariant = {
|
||||
virtualisation = {
|
||||
memorySize = 8192;
|
||||
cores = 6;
|
||||
};
|
||||
};
|
||||
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
}
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
users.users.sckova.extraGroups = [ "qbittorrent" ];
|
||||
services = {
|
||||
qbittorrent = {
|
||||
enable = false;
|
||||
serverConfig = {
|
||||
Preferences = {
|
||||
Advanced.useSystemIconTheme = true;
|
||||
General = {
|
||||
CloseToTray = false;
|
||||
CloseToTrayNotified = true;
|
||||
ExitConfirm = false;
|
||||
Locale = "en";
|
||||
};
|
||||
WebUI = {
|
||||
Address = "*";
|
||||
Enabled = true;
|
||||
Port = 9697;
|
||||
UseUPnP = false;
|
||||
};
|
||||
BitTorrent = {
|
||||
SessionGlobalDLSpeedLimit = 0;
|
||||
GlobalUPSpeedLimit = 0;
|
||||
Port = 42578;
|
||||
QueueingSystemEnabled = false;
|
||||
SSL.Port = 63114;
|
||||
StartPaused = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
flaresolverr = {
|
||||
enable = true;
|
||||
port = 8191;
|
||||
};
|
||||
prowlarr = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
urlbase = "localhost";
|
||||
port = 9696;
|
||||
bindaddress = "*";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue