enable garbage collection, openssh, autologin, etc.
also: - mangohud - flatpak - wake on lan - increase mic gain
This commit is contained in:
24 files changed
+493
-146
No files matched your search
@@ -47,11 +47,7 @@
|
||||
}
|
||||
{
|
||||
type = "terminal";
|
||||
key = " Term";
|
||||
}
|
||||
{
|
||||
type = "de";
|
||||
key = " DE";
|
||||
key = " Terminal";
|
||||
}
|
||||
{
|
||||
type = "wm";
|
||||
|
||||
@@ -0,0 +1,150 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
programs.zsh.initContent = lib.mkOrder 1500 "fastfetch";
|
||||
|
||||
programs.fastfetch = {
|
||||
enable = true;
|
||||
settings = {
|
||||
logo = {
|
||||
source = "/home/grey/nixos/assets/jiji.jpg";
|
||||
width = 30;
|
||||
padding = {
|
||||
top = 1;
|
||||
left = 2;
|
||||
right = 2;
|
||||
};
|
||||
};
|
||||
|
||||
modules = [
|
||||
{
|
||||
type = "custom";
|
||||
format = "┌────────────────── Software ──────────────────┐";
|
||||
}
|
||||
{
|
||||
type = "title";
|
||||
key = " Session";
|
||||
format = "{user-name}@{host-name}";
|
||||
}
|
||||
{
|
||||
type = "os";
|
||||
key = " Distro";
|
||||
format = "{pretty-name}";
|
||||
}
|
||||
{
|
||||
type = "kernel";
|
||||
key = " Kernel";
|
||||
}
|
||||
{
|
||||
type = "shell";
|
||||
key = " Shell";
|
||||
}
|
||||
{
|
||||
type = "terminal";
|
||||
key = " Terminal";
|
||||
}
|
||||
{
|
||||
type = "de";
|
||||
key = " DE";
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
format = "└──────────────────────────────────────────────┘";
|
||||
}
|
||||
"break"
|
||||
{
|
||||
type = "custom";
|
||||
format = "┌────────────────── Hardware ──────────────────┐";
|
||||
}
|
||||
{
|
||||
type = "cpu";
|
||||
key = " CPU";
|
||||
format = "{name}";
|
||||
}
|
||||
{
|
||||
type = "gpu";
|
||||
key = " GPU";
|
||||
temp = false;
|
||||
hideType = "integrated";
|
||||
format = "{name}";
|
||||
}
|
||||
{
|
||||
type = "memory";
|
||||
key = " RAM";
|
||||
percent = {
|
||||
green = 50;
|
||||
yellow = 80;
|
||||
type = 0;
|
||||
};
|
||||
}
|
||||
{
|
||||
type = "swap";
|
||||
key = " Swap";
|
||||
percent = {
|
||||
green = 50;
|
||||
yellow = 80;
|
||||
type = 0;
|
||||
};
|
||||
separate = false;
|
||||
}
|
||||
{
|
||||
type = "disk";
|
||||
key = " Disk";
|
||||
showRegular = true;
|
||||
showExternal = false;
|
||||
showHidden = false;
|
||||
showSubvolumes = false;
|
||||
showReadOnly = true;
|
||||
ShowUnknown = false;
|
||||
hideFolders = "/efi:/boot:/boot/*:/run/media/*";
|
||||
useAvailable = false;
|
||||
percent = {
|
||||
green = 50;
|
||||
yellow = 80;
|
||||
type = 0;
|
||||
};
|
||||
}
|
||||
{
|
||||
type = "localip";
|
||||
key = " IP";
|
||||
showIpv4 = true;
|
||||
showIpv6 = false;
|
||||
showMac = false;
|
||||
showLoop = false;
|
||||
showPrefixLen = true;
|
||||
showMtu = false;
|
||||
showSpeed = false;
|
||||
showFlags = false;
|
||||
compact = false;
|
||||
defaultRouteOnly = true;
|
||||
showAllIps = false;
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
format = "└──────────────────────────────────────────────┘";
|
||||
}
|
||||
"break"
|
||||
{
|
||||
type = "custom";
|
||||
format = "┌──────────────── Age / Uptime ────────────────┐";
|
||||
}
|
||||
{
|
||||
type = "disk";
|
||||
key = " OS Age";
|
||||
folders = "/";
|
||||
format = "{create-time:10} ({days} days)";
|
||||
}
|
||||
{
|
||||
type = "uptime";
|
||||
key = " Uptime";
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
format = "└──────────────────────────────────────────────┘";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -13,9 +13,9 @@ in {
|
||||
"${modules-dir}/display-managers/sddm.nix"
|
||||
"${modules-dir}/desktop-environments/plasma6.nix"
|
||||
"${modules-dir}/zsh.nix"
|
||||
./modules/openssh.nix
|
||||
];
|
||||
|
||||
programs.gamemode.enable = true;
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
@@ -32,24 +32,26 @@ in {
|
||||
efiSupport = true;
|
||||
useOSProber = true;
|
||||
theme = pkgs.stdenv.mkDerivation {
|
||||
pname = "liquidglass-grub";
|
||||
version = "1.0";
|
||||
pname = "minegrub-world-selection";
|
||||
version = "v1.0.0";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "Purp1eDuck2008";
|
||||
repo = "Liquid-GRUB";
|
||||
rev = "1c336ff58c952e614713471b0aeceeb5d6f29c12";
|
||||
hash = "sha256-+YYZK6VTA6fi67k+e2F2wVzkVMM7wvg/P7KzxL6R258=";
|
||||
owner = "Lxtharia";
|
||||
repo = "minegrub-world-sel-theme";
|
||||
rev = "main";
|
||||
hash = "sha256-gBlP4aQQ0f3L6S1gWbidbflnp0p5hsJ8qmbyArZ8LO4=";
|
||||
};
|
||||
installPhase = "cp -r LiquidGlass $out";
|
||||
installPhase = "cp -r minegrub-world-selection $out";
|
||||
};
|
||||
};
|
||||
|
||||
services.flatpak.enable = true;
|
||||
|
||||
hardware.i2c.enable = true;
|
||||
|
||||
users.users."grey".extraGroups = [ config.hardware.i2c.group ];
|
||||
|
||||
services.lact.enable = true;
|
||||
hardware.amdgpu.overdrive.enable = true;
|
||||
# hardware.amdgpu.overdrive.enable = true;
|
||||
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
@@ -63,4 +65,9 @@ in {
|
||||
"vm.watermark_scale_factor" = 125;
|
||||
"vm.page-cluster" = 0;
|
||||
};
|
||||
|
||||
networking.interfaces."enp10s0".wakeOnLan = {
|
||||
enable = true;
|
||||
policy = [ "magic" ];
|
||||
};
|
||||
}
|
||||
+11
-1
@@ -11,7 +11,6 @@ in {
|
||||
inputs.nixos-millennium.homeManagerModules.default
|
||||
../../global-home.nix
|
||||
"${global-configs}/plasma.nix"
|
||||
"${global-configs}/fastfetch.nix"
|
||||
"${global-configs}/zen-browser.nix"
|
||||
"${global-configs}/vscode.nix"
|
||||
"${global-configs}/zsh.nix"
|
||||
@@ -19,6 +18,7 @@ in {
|
||||
"${global-configs}/spicetify.nix"
|
||||
./configs/easyeffects.nix
|
||||
./configs/kitty.nix
|
||||
./configs/fastfetch.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
@@ -37,6 +37,8 @@ in {
|
||||
protontricks
|
||||
kdePackages.filelight
|
||||
dconf-editor
|
||||
mangohud
|
||||
mangojuice
|
||||
];
|
||||
|
||||
home.pointerCursor = {
|
||||
@@ -50,6 +52,14 @@ in {
|
||||
|
||||
programs.steam.theme = pkgs.millenniumThemes.nevko-ui;
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
colorScheme = "dark";
|
||||
|
||||
gtk2.configLocation = "${config.home.homeDirectory}/.config/.gtkrc-2.0"; # prevents file conflicts between this and other parts of the nix config
|
||||
gtk2.force = true;
|
||||
};
|
||||
|
||||
home.activation = {
|
||||
linkAutostartDir = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||
#!/bin/bash
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
users.users."grey".openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCeYFzFyv1LEdWngyTDqnsdJQhmgAfQbbksyZrNWkameVMJpi8IJ+3IIrL96BtD8EAC/jxHIbri49TInN0lYRBH3cH3jbBupdDFaziH3ohyMoeg8enKYsiisaT+MTGEGFygF9Ul1WDrOM1oThEP1LTYj5pWNfZRtIG870jLzRkNczb0eCtEO0qWtyH92Cb5BSpXBKd4Eaysvkm5ex77I5Y1Hl0RUjyEiegiwC1LrcrFhjhVFQGlShTr5kf/LJrwamyGJx4oLi462Omf/jLwNoIMLNgxzuJBynYK714AY9U/IbNq//bEQro6i2cwxPm4lSTaGemnhvEItHsDfbeAJ06iqOl51OtsM2qees2ygCgFvraKNRTmOoRkhS/IwC1bqoMqR8uraYcfKlXeXBjYnJbVG6u/SAGLg7Llmt5UAs7a6/W/7ytWJ90uQVjgPcb7h+9ji+jK18EQUd/AAknfLkLE5IoU5wj6+2OTAGeCT46BbMpYOk2RJinUy93VBIPuRyvZ5tdIt76BPt3JgosYbYtbdkyZTI8V72iCVLWae1uCF2pJlZ1gLteaS0ZmkgyEsAchm8VaoE8NrIO4MBpyZ3fZ9gsprT5jsnUb9Hc+opKSgX+OwDjzM5BadCUFtvoJE3FNTv7koIDg2myHyYj+1kFxp6ctjNgP9V9/0rc4oWz9ew== grey@kitagawa" ];
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
enableRecommendedAlgorithms = false;
|
||||
generateHostKeys = false;
|
||||
settings = {
|
||||
AllowUsers = [ "grey" ];
|
||||
KbdInteractiveAuthentication = false;
|
||||
PasswordAuthentication = false;
|
||||
PermitRootLogin = "no";
|
||||
MaxAuthTries = 3;
|
||||
MaxSessions = 5;
|
||||
MaxStartups = "2:50:5";
|
||||
};
|
||||
startWhenNeeded = true;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user