desktop-2024-08-30-11-21-08
This commit is contained in:
@ -1,4 +1,7 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
unstable = import <nixos-unstable> {};
|
||||||
|
in
|
||||||
{
|
{
|
||||||
environment.shells = with pkgs; [ bashInteractive zsh ];
|
environment.shells = with pkgs; [ bashInteractive zsh ];
|
||||||
|
|
||||||
@ -16,6 +19,7 @@
|
|||||||
vnstat.enable = true;
|
vnstat.enable = true;
|
||||||
tuptime.enable = true;
|
tuptime.enable = true;
|
||||||
locate.enable = true;
|
locate.enable = true;
|
||||||
|
|
||||||
openssh = {
|
openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
@ -51,28 +55,35 @@
|
|||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
nameservers = [ "127.0.0.1" ];
|
nameservers = [ "127.0.0.1" ];
|
||||||
# hosts = {
|
|
||||||
# "207.180.220.97" = [ "szczepan.ski" ];
|
|
||||||
# "10.100.0.1" = [ "vps.wg" ];
|
|
||||||
# "10.100.0.2" = [ "desktop.wg" ];
|
|
||||||
# "10.100.0.3" = [ "mini.wg" ];
|
|
||||||
# };
|
|
||||||
# If using dhcpcd:
|
# If using dhcpcd:
|
||||||
dhcpcd.extraConfig = "nohook resolv.conf";
|
dhcpcd.extraConfig = "nohook resolv.conf";
|
||||||
# If using NetworkManager:
|
# If using NetworkManager:
|
||||||
networkmanager.dns = "none";
|
networkmanager.dns = "none";
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with unstable.pkgs; [
|
||||||
ack
|
ack
|
||||||
borgbackup
|
borgbackup
|
||||||
borgmatic
|
borgmatic
|
||||||
|
|
||||||
btrfs-progs
|
btrfs-progs
|
||||||
|
|
||||||
cargo
|
cargo
|
||||||
dog
|
# dog # different cat
|
||||||
doggo # DNS Resolver
|
doggo # DNS Resolver
|
||||||
|
|
||||||
du-dust
|
du-dust
|
||||||
|
ncdu
|
||||||
|
|
||||||
duf
|
duf
|
||||||
|
dfc
|
||||||
|
|
||||||
|
eza
|
||||||
|
|
||||||
|
btop
|
||||||
|
htop
|
||||||
|
glances
|
||||||
|
|
||||||
gnupg
|
gnupg
|
||||||
gocryptfs
|
gocryptfs
|
||||||
graphviz
|
graphviz
|
||||||
@ -90,6 +101,7 @@
|
|||||||
nix-du
|
nix-du
|
||||||
nix-tree
|
nix-tree
|
||||||
nixpkgs-fmt
|
nixpkgs-fmt
|
||||||
|
|
||||||
nmap
|
nmap
|
||||||
nodejs
|
nodejs
|
||||||
parallel
|
parallel
|
||||||
@ -104,7 +116,7 @@
|
|||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
experimental-features = [ "nix-command" ];
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
|
@ -13,5 +13,7 @@
|
|||||||
lazydocker
|
lazydocker
|
||||||
minikube
|
minikube
|
||||||
dive
|
dive
|
||||||
|
|
||||||
|
distrobox
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -2,20 +2,19 @@
|
|||||||
let
|
let
|
||||||
unstable = import <nixos-unstable> {
|
unstable = import <nixos-unstable> {
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
config.packageOverrides = pkgs: {
|
|
||||||
lutris = pkgs.lutris.override {
|
|
||||||
extraPkgs = pkgs: with unstable.pkgs; [ gamescope mangohud ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
nix-gaming = import (builtins.fetchTarball "https://github.com/fufexan/nix-gaming/archive/master.tar.gz");
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
programs = {
|
programs = {
|
||||||
gamescope.enable = true;
|
gamescope = {
|
||||||
|
enable = true;
|
||||||
|
capSysNice = true;
|
||||||
|
};
|
||||||
steam = {
|
steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.steam.override {
|
package = unstable.pkgs.steam.override {
|
||||||
extraPkgs = pkgs: with pkgs; [
|
extraPkgs = pkgs: with unstable.pkgs; [
|
||||||
gamescope
|
gamescope
|
||||||
mangohud
|
mangohud
|
||||||
libkrb5
|
libkrb5
|
||||||
@ -26,12 +25,25 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with unstable.pkgs; [
|
environment.systemPackages = with unstable.pkgs; [
|
||||||
lutris
|
(lutris.override {
|
||||||
|
extraPkgs = pkgs: with unstable.pkgs; [
|
||||||
|
gamescope mangohud
|
||||||
|
];
|
||||||
|
})
|
||||||
|
|
||||||
|
heroic
|
||||||
|
|
||||||
protontricks
|
protontricks
|
||||||
protonup-qt
|
protonup-qt
|
||||||
vulkan-tools
|
vulkan-tools
|
||||||
|
|
||||||
|
gamemode
|
||||||
|
|
||||||
wine
|
wine
|
||||||
winetricks
|
winetricks
|
||||||
|
# proton-ge-bin
|
||||||
pcsx2
|
pcsx2
|
||||||
|
gamescope
|
||||||
|
mangohud
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
krusader
|
krusader
|
||||||
ktimetracker
|
ktimetracker
|
||||||
kdiff3
|
kdiff3
|
||||||
|
kdiskmark
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -46,15 +46,10 @@ in {
|
|||||||
sane.enable = true;
|
sane.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
# services = {
|
||||||
gvfs.enable = true;
|
# gvfs.enable = true;
|
||||||
# mullvad-vpn.enable = true;
|
# mullvad-vpn.enable = true;
|
||||||
|
# };
|
||||||
# etesync-dav = {
|
|
||||||
# enable = true;
|
|
||||||
# apiUrl = "https://etesync.szczepan.ski/";
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
adb.enable = true;
|
adb.enable = true;
|
||||||
@ -69,24 +64,17 @@ in {
|
|||||||
|
|
||||||
environment.systemPackages = with unstable.pkgs; [
|
environment.systemPackages = with unstable.pkgs; [
|
||||||
alacritty
|
alacritty
|
||||||
# baobab
|
|
||||||
# gparted
|
|
||||||
czkawka # fslint before
|
czkawka # fslint before
|
||||||
# discord
|
|
||||||
# espeak-ng
|
|
||||||
grsync
|
grsync
|
||||||
handbrake
|
handbrake
|
||||||
insomnia
|
insomnia
|
||||||
keepassxc
|
keepassxc
|
||||||
meld
|
meld
|
||||||
|
exfatprogs
|
||||||
nextcloud-client
|
nextcloud-client
|
||||||
pinta
|
pinta
|
||||||
# remmina
|
|
||||||
rustdesk-flutter
|
rustdesk-flutter
|
||||||
simple-scan
|
simple-scan
|
||||||
# signal-desktop
|
|
||||||
# solaar
|
|
||||||
# spotify
|
|
||||||
virt-manager
|
virt-manager
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -109,6 +97,7 @@ in {
|
|||||||
|
|
||||||
kitty = {
|
kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = unstable.pkgs.kitty;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
enable_audio_bell false
|
enable_audio_bell false
|
||||||
|
|
||||||
|
@ -51,16 +51,10 @@ in {
|
|||||||
stateVersion = "24.05";
|
stateVersion = "24.05";
|
||||||
packages = with unstable.pkgs; [
|
packages = with unstable.pkgs; [
|
||||||
# atop
|
# atop
|
||||||
btop
|
|
||||||
broot
|
broot
|
||||||
dfc
|
|
||||||
eza
|
|
||||||
ffmpeg
|
ffmpeg
|
||||||
git-secret
|
git-secret
|
||||||
glances
|
|
||||||
htop
|
|
||||||
kubectl
|
kubectl
|
||||||
ncdu
|
|
||||||
neofetch
|
neofetch
|
||||||
nixfmt-classic
|
nixfmt-classic
|
||||||
pstree
|
pstree
|
||||||
|
@ -8,6 +8,10 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
<nixos-hardware/common/cpu/amd/default.nix>
|
||||||
|
<nixos-hardware/common/cpu/amd/pstate.nix>
|
||||||
|
<nixos-hardware/common/cpu/amd/zenpower.nix>
|
||||||
|
<nixos-hardware/common/pc/ssd>
|
||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
../configs/browser.nix
|
../configs/browser.nix
|
||||||
../configs/common.nix
|
../configs/common.nix
|
||||||
@ -36,14 +40,9 @@ in
|
|||||||
efi = { canTouchEfiVariables = true; };
|
efi = { canTouchEfiVariables = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
# initrd.kernelModules = [ "amdgpu" ];
|
extraModulePackages = with pkgs.linuxPackages; [ it87 ];
|
||||||
plymouth.enable = true;
|
kernelModules = [ "it87" ];
|
||||||
|
# kernelParams = [ "amdgpu.ppfeaturemask=0xffffffff" ];
|
||||||
extraModulePackages = with pkgs.linuxPackages; [ it87 zenpower ];
|
|
||||||
kernelModules = [ "it87" "zenpower" ];
|
|
||||||
kernelParams = [ "amdgpu.ppfeaturemask=0xffffffff" ];
|
|
||||||
supportedFilesystems = [ "ntfs" ];
|
|
||||||
blacklistedKernelModules = [ "k10temp" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
@ -81,19 +80,20 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with unstable.pkgs; [
|
environment.systemPackages = with unstable.pkgs; [
|
||||||
unigine-valley
|
|
||||||
unigine-superposition
|
|
||||||
lact
|
lact
|
||||||
amdgpu_top
|
amdgpu_top
|
||||||
|
|
||||||
python3
|
python3
|
||||||
python311Packages.tkinter
|
python311Packages.tkinter
|
||||||
|
|
||||||
|
snapraid
|
||||||
|
mergerfs
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
keyboard.qmk.enable = true;
|
keyboard.qmk.enable = true;
|
||||||
enableAllFirmware = true;
|
enableAllFirmware = true;
|
||||||
xone.enable = true;
|
xone.enable = true;
|
||||||
cpu.amd.updateMicrocode = true;
|
|
||||||
|
|
||||||
bluetooth.enable = true;
|
bluetooth.enable = true;
|
||||||
opengl = {
|
opengl = {
|
||||||
@ -113,16 +113,16 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
config = ''
|
config = ''
|
||||||
INTERVAL=10
|
INTERVAL=10
|
||||||
DEVPATH=hwmon2=devices/platform/it87.656
|
DEVPATH=hwmon3=devices/platform/it87.656
|
||||||
DEVNAME=hwmon2=it8665
|
DEVNAME=hwmon3=it8665
|
||||||
FCTEMPS=hwmon2/pwm3=hwmon2/temp1_input hwmon2/pwm2=hwmon2/temp1_input hwmon2/pwm1=hwmon2/temp1_input
|
FCTEMPS=hwmon3/pwm3=hwmon2/temp1_input hwmon3/pwm2=hwmon2/temp1_input hwmon3/pwm1=hwmon2/temp1_input
|
||||||
FCFANS=hwmon2/pwm3=hwmon2/fan2_input hwmon2/pwm2=hwmon2/fan1_input hwmon2/pwm1=
|
FCFANS=hwmon3/pwm3=hwmon3/fan3_input hwmon3/pwm2=hwmon3/fan2_input hwmon3/pwm1=hwmon3/fan1_input
|
||||||
MINTEMP=hwmon2/pwm3=60 hwmon2/pwm2=60 hwmon2/pwm1=60
|
MINTEMP=hwmon3/pwm3=60 hwmon3/pwm2=60 hwmon3/pwm1=60
|
||||||
MAXTEMP=hwmon2/pwm3=75 hwmon2/pwm2=75 hwmon2/pwm1=75
|
MAXTEMP=hwmon3/pwm3=80 hwmon3/pwm2=80 hwmon3/pwm1=80
|
||||||
MINSTART=hwmon2/pwm3=51 hwmon2/pwm2=51 hwmon2/pwm1=51
|
MINSTART=hwmon3/pwm3=51 hwmon3/pwm2=51 hwmon3/pwm1=51
|
||||||
MINSTOP=hwmon2/pwm3=51 hwmon2/pwm2=51 hwmon2/pwm1=51
|
MINSTOP=hwmon3/pwm3=51 hwmon3/pwm2=51 hwmon3/pwm1=51
|
||||||
MINPWM=hwmon2/pwm1=51 hwmon2/pwm2=51 hwmon2/pwm3=51
|
MINPWM=hwmon3/pwm1=51 hwmon3/pwm2=51 hwmon3/pwm3=51
|
||||||
MAXPWM=hwmon2/pwm3=127 hwmon2/pwm2=204
|
MAXPWM=hwmon3/pwm3=127 hwmon3/pwm2=153 hwmon3/pwm1=153
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ in
|
|||||||
power-profiles-daemon.enable = true;
|
power-profiles-daemon.enable = true;
|
||||||
netdata.enable = true;
|
netdata.enable = true;
|
||||||
printing.enable = true;
|
printing.enable = true;
|
||||||
# xserver.videoDrivers = [ "amdgpu" ];
|
fwupd.enable = true;
|
||||||
|
|
||||||
displayManager.autoLogin = {
|
displayManager.autoLogin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -149,6 +149,31 @@ in
|
|||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
samba = {
|
||||||
|
enable = true;
|
||||||
|
securityType = "user";
|
||||||
|
extraConfig = ''
|
||||||
|
workgroup = WORKGROUP
|
||||||
|
server string = server
|
||||||
|
netbios name = server
|
||||||
|
security = user
|
||||||
|
guest account = nobody
|
||||||
|
map to guest = bad user
|
||||||
|
logging = systemd
|
||||||
|
max log size = 50
|
||||||
|
'';
|
||||||
|
shares = {
|
||||||
|
storage = {
|
||||||
|
path = "/home/alex/shared/storage";
|
||||||
|
browseable = "yes";
|
||||||
|
"read only" = "no";
|
||||||
|
"guest ok" = "no";
|
||||||
|
"create mask" = "0644";
|
||||||
|
"directory mask" = "0755";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
tailscale.enable = true;
|
tailscale.enable = true;
|
||||||
|
|
||||||
borgbackup.jobs.home = rec {
|
borgbackup.jobs.home = rec {
|
||||||
@ -173,12 +198,5 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.alex.services.barrier.client = {
|
|
||||||
enable = true;
|
|
||||||
enableCrypto = false;
|
|
||||||
name = "desktop";
|
|
||||||
server = "192.168.0.168:24800";
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,6 @@ in
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
<nixos-hardware/framework/13-inch/12th-gen-intel>
|
<nixos-hardware/framework/13-inch/12th-gen-intel>
|
||||||
<home-manager/nixos>
|
|
||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
../configs/browser.nix
|
../configs/browser.nix
|
||||||
../configs/common.nix
|
../configs/common.nix
|
||||||
@ -213,12 +212,5 @@ in
|
|||||||
};
|
};
|
||||||
systemd.sleep.extraConfig = "HibernateDelaySec=60m";
|
systemd.sleep.extraConfig = "HibernateDelaySec=60m";
|
||||||
|
|
||||||
home-manager.users.alex.services.barrier.client = {
|
|
||||||
enable = true;
|
|
||||||
enableCrypto = false;
|
|
||||||
name = "framework";
|
|
||||||
server = "192.168.0.168:24800";
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,6 @@ in
|
|||||||
../configs/plasma.nix
|
../configs/plasma.nix
|
||||||
../configs/user-gui.nix
|
../configs/user-gui.nix
|
||||||
../configs/user.nix
|
../configs/user.nix
|
||||||
<home-manager/nixos>
|
|
||||||
];
|
];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
|
Reference in New Issue
Block a user