desktop-2024-11-03-09-13-27

This commit is contained in:
Alexander Szczepanski
2024-11-03 09:13:27 +01:00
parent 4160c3408f
commit ed7833b3e9
38 changed files with 525 additions and 1245 deletions

View File

@ -1,12 +1,14 @@
{ config, pkgs, lib, ... }:
{
config,
pkgs,
lib,
...
}: {
programs.firefox = {
enable = true;
# nativeMessagingHosts.packages = with pkgs; [ uget-integrator ];
};
environment.systemPackages = with pkgs; [
# uget
brave
librewolf
tor-browser-bundle-bin

View File

@ -1,9 +1,13 @@
{ config, lib, pkgs, ... }:
{
imports = [ ../configs/common.nix ../configs/docker.nix ../configs/user.nix ];
config,
lib,
pkgs,
...
}: {
imports = [../configs/common.nix ../configs/docker.nix ../configs/user.nix];
fileSystems."/export/docker" = {
device = "/home/alex/docker";
options = [ "bind" ];
options = ["bind"];
};
}

View File

@ -1,5 +1,10 @@
{ config, pkgs, lib, ... }:
{
config,
pkgs,
lib,
inputs,
...
}: {
boot = {
tmp = {
useTmpfs = lib.mkDefault true;
@ -7,7 +12,7 @@
};
# kernelParams = [ "quiet" ];
consoleLogLevel = 0;
kernel.sysctl = { "vm.max_map_count" = 262144; };
kernel.sysctl = {"vm.max_map_count" = 262144;};
# initrd.systemd.enable = (!config.boot.swraid.enable && !config.boot.isContainer);
};
@ -18,7 +23,7 @@
# Don't install the /lib/ld-linux.so.2 stub. This saves one instance of nixpkgs.
ldso32 = null;
shells = with pkgs; [ bashInteractive zsh ];
shells = with pkgs; [bashInteractive zsh];
systemPackages = with pkgs; [
ack
@ -64,8 +69,10 @@
nil
nix-du
nix-tree
nixpkgs-fmt
nixd
alejandra
parallel
pciutils
@ -74,21 +81,19 @@
unzip
usbutils
wget
comma
];
};
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LANGUAGE = "en_US.UTF-8";
LC_ALL = "en_US.UTF-8";
LANGUAGE = "en_US.UTF-8";
LC_ALL = "en_US.UTF-8";
};
};
networking = {
nameservers = [ "127.0.0.1" ];
nameservers = ["127.0.0.1"];
# If using dhcpcd:
dhcpcd.extraConfig = "nohook resolv.conf";
# If using NetworkManager:
@ -107,14 +112,15 @@
};
nix = {
nixPath = ["nixpkgs=${inputs.nixpkgs-unstable}"];
channel.enable = false;
settings = {
auto-optimise-store = true;
experimental-features = [ "nix-command" "flakes" ];
experimental-features = ["nix-command" "flakes"];
connect-timeout = 5;
log-lines = 25;
max-free = (3000 * 1024 * 1024);
min-free = (512 * 1024 * 1024);
max-free = 3000 * 1024 * 1024;
min-free = 512 * 1024 * 1024;
builders-use-substitutes = true;
};
@ -134,17 +140,16 @@
};
ssh.knownHosts = {
"github.com".hostNames = [ "github.com" ];
"github.com".hostNames = ["github.com"];
"github.com".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl";
"u278697.your-storagebox.de".hostNames = [ "u278697.your-storagebox.de" ];
"u278697.your-storagebox.de".hostNames = ["u278697.your-storagebox.de"];
"u278697.your-storagebox.de".publicKey = "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5EB5p/5Hp3hGW1oHok+PIOH9Pbn7cnUiGmUEBrCVjnAw+HrKyN8bYVV0dIGllswYXwkG/+bgiBlE6IVIBAq+JwVWu1Sss3KarHY3OvFJUXZoZyRRg/Gc/+LRCE7lyKpwWQ70dbelGRyyJFH36eNv6ySXoUYtGkwlU5IVaHPApOxe4LHPZa/qhSRbPo2hwoh0orCtgejRebNtW5nlx00DNFgsvn8Svz2cIYLxsPVzKgUxs8Zxsxgn+Q/UvR7uq4AbAhyBMLxv7DjJ1pc7PJocuTno2Rw9uMZi1gkjbnmiOh6TTXIEWbnroyIhwc8555uto9melEUmWNQ+C+PwAK+MPw==";
# [u278697.your-storagebox.de]:23 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIICf9svRenC/PLKIL9nk6K/pxQgoiFC41wTNvoIncOxs
# [u278697.your-storagebox.de]:23 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5EB5p/5Hp3hGW1oHok+PIOH9Pbn7cnUiGmUEBrCVjnAw+HrKyN8bYVV0dIGllswYXwkG/+bgiBlE6IVIBAq+JwVWu1Sss3KarHY3OvFJUXZoZyRRg/Gc/+LRCE7lyKpwWQ70dbelGRyyJFH36eNv6ySXoUYtGkwlU5IVaHPApOxe4LHPZa/qhSRbPo2hwoh0orCtgejRebNtW5nlx00DNFgsvn8Svz2cIYLxsPVzKgUxs8Zxsxgn+Q/UvR7uq4AbAhyBMLxv7DjJ1pc7PJocuTno2Rw9uMZi1gkjbnmiOh6TTXIEWbnroyIhwc8555uto9melEUmWNQ+C+PwAK+MPw==
# [u278697.your-storagebox.de]:23 ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAGK0po6usux4Qv2d8zKZN1dDvbWjxKkGsx7XwFdSUCnF19Q8psHEUWR7C/LtSQ5crU/g+tQVRBtSgoUcE8T+FWp5wBxKvWG2X9gD+s9/4zRmDeSJR77W6gSA/+hpOZoSE+4KgNdnbYSNtbZH/dN74EG7GLb/gcIpbUUzPNXpfKl7mQitw==
};
};
services = {
@ -195,7 +200,7 @@
};
};
journald = { extraConfig = "SystemMaxUse=500M"; };
journald = {extraConfig = "SystemMaxUse=500M";};
};
# The notion of "online" is a broken concept

View File

@ -1,5 +1,8 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
environment.systemPackages = with pkgs; [
insomnia
meld

View File

@ -1,6 +1,9 @@
{ config, pkgs, lib, ... }:
{
config,
pkgs,
lib,
...
}: {
virtualisation = {
docker = {
enable = true;

View File

@ -1,6 +1,11 @@
{ config, pkgs, lib, outputs, ... }:
{
users.extraGroups.gamemode.members = [ "alex" ];
config,
pkgs,
lib,
outputs,
...
}: {
users.extraGroups.gamemode.members = ["alex"];
programs = {
gamescope = {

View File

@ -1,5 +1,9 @@
{ config, pkgs, lib, ... }:
{
config,
pkgs,
lib,
...
}: {
services = {
fwupd.enable = true;
};

View File

@ -1,4 +1,9 @@
{ config, pkgs, lib, ... }: {
{
config,
pkgs,
lib,
...
}: {
programs = {
dconf.enable = true;
kdeconnect.enable = true;

View File

@ -1,60 +0,0 @@
{ config, pkgs, lib, ... }: {
programs = {
dconf.enable = true;
kdeconnect.enable = true;
};
environment = {
plasma6.excludePackages = with pkgs.kdePackages; [
plasma-browser-integration
konsole
oxygen
kate
];
systemPackages = with pkgs; [
kdePackages.ksshaskpass
kdePackages.kde-gtk-config
kdePackages.breeze-gtk
kdePackages.partitionmanager
kdePackages.filelight
kdePackages.plasma-disks
kdePackages.kalk
krusader
ktimetracker
kdiff3
kdiskmark
];
};
services = {
desktopManager.plasma6.enable = true;
displayManager = {
defaultSession = "plasmax11";
sddm = {
enable = true;
# wayland.enable = true;
};
};
xserver = {
enable = true;
excludePackages = [ pkgs.xterm ];
xkb.layout = "us";
# Enable touchpad support.
updateDbusEnvironment = true;
};
libinput.enable = true;
};
programs = {
ssh = {
startAgent = true;
askPassword = pkgs.lib.mkForce "${pkgs.kdePackages.ksshaskpass}/bin/ksshaskpass";
};
};
}

View File

@ -1,9 +1,13 @@
{ config, pkgs, lib, ... }:
{
config,
pkgs,
lib,
...
}: {
services = {
printing = {
enable = true;
drivers = [ pkgs.brlaser ];
drivers = [pkgs.brlaser];
};
};
}

View File

@ -1,9 +1,14 @@
{ config, pkgs, inputs, home-manager, ... }:
{
imports = [ inputs.home-manager.nixosModules.home-manager ];
config,
pkgs,
inputs,
home-manager,
...
}: {
imports = [inputs.home-manager.nixosModules.home-manager];
networking = {
firewall.enable = false;
networkmanager = { enable = true; };
networkmanager = {enable = true;};
};
fonts = {
@ -11,7 +16,7 @@
fontDir.enable = true;
packages = with pkgs; [
(nerdfonts.override { fonts = [ "Meslo" "RobotoMono"]; })
(nerdfonts.override {fonts = ["Meslo" "RobotoMono"];})
corefonts
google-fonts
liberation_ttf
@ -40,7 +45,7 @@
programs = {
adb.enable = true;
ssh = { startAgent = true; };
ssh = {startAgent = true;};
# dconf.enable = true;
# gnupg.agent = {
# enable = true;
@ -65,7 +70,7 @@
shotcut
];
home-manager.users.alex = { pkgs, ... }: {
home-manager.users.alex = {pkgs, ...}: {
programs = {
vscode = {
enable = true;

View File

@ -1,5 +1,10 @@
{ config, pkgs, lib, inputs, ... }:
let
{
config,
pkgs,
lib,
inputs,
...
}: let
serviceConfig = {
MountAPIVFS = true;
PrivateTmp = true;
@ -12,8 +17,7 @@ let
ProtectSystem = "full";
RestrictSUIDSGID = true;
};
in
{
in {
imports = [
inputs.home-manager.nixosModules.home-manager
{
@ -60,9 +64,9 @@ in
nix-ld.enable = true;
};
environment.pathsToLink = [ "/share/zsh" ];
environment.pathsToLink = ["/share/zsh"];
home-manager.users.alex = { pkgs, ... }: {
home-manager.users.alex = {pkgs, ...}: {
home = {
stateVersion = "24.11";
packages = with pkgs; [
@ -71,7 +75,6 @@ in
git-secret
kubectl
neofetch
nixfmt-classic
pstree
qrencode
ranger
@ -83,9 +86,9 @@ in
nix-output-monitor
];
sessionPath = [ "$HOME/.npm-packages" "$HOME/.bin" ];
sessionPath = ["$HOME/.npm-packages" "$HOME/.bin"];
file = {
".npmrc" = { source = ../home/npmrc; };
".npmrc" = {source = ../home/npmrc;};
".bin/git-redate" = {
executable = true;
source = ../home/bin/git-redate;
@ -104,14 +107,14 @@ in
serverAliveInterval = 60;
forwardAgent = true;
matchBlocks."szczepan.ski" = { hostname = "szczepan.ski"; };
matchBlocks."mini" = { hostname = "mini"; };
matchBlocks."szczepan.ski" = {hostname = "szczepan.ski";};
matchBlocks."mini" = {hostname = "mini";};
matchBlocks."nixos-vm" = {
hostname = "127.0.0.1";
port = 1337;
};
matchBlocks."thinkpad" = { hostname = "thinkpad"; };
matchBlocks."thinkpad" = {hostname = "thinkpad";};
};
git = {
@ -119,10 +122,10 @@ in
userName = "Alexander Szczepanski";
userEmail = "alexander@szczepan.ski";
extraConfig = {
core = { autocrlf = false; };
color = { ui = "auto"; };
push = { default = "current"; };
pull = { rebase = true; };
core = {autocrlf = false;};
color = {ui = "auto";};
push = {default = "current";};
pull = {rebase = true;};
};
};
@ -133,8 +136,7 @@ in
syntaxHighlighting.enable = true;
oh-my-zsh = {
enable = true;
plugins =
[ "cp" "common-aliases" "docker" "systemd" "wd" "kubectl" "git" ];
plugins = ["cp" "common-aliases" "docker" "systemd" "wd" "kubectl" "git"];
};
plugins = [
{
@ -149,8 +151,7 @@ in
}
];
shellAliases = {
active-services =
"systemctl --no-page --no-legend --plain -t service --state=running";
active-services = "systemctl --no-page --no-legend --plain -t service --state=running";
db = "sudo updatedb";
"-g C" = "| wc -l";
"-g G" = "| grep --ignore-case";
@ -165,7 +166,7 @@ in
};
};
tmux = { enable = true; };
tmux = {enable = true;};
};
};
}

View File

@ -1,6 +1,5 @@
{ pkgs, ... }:
{
users.extraGroups.vboxusers.members = [ "alex" ];
{pkgs, ...}: {
users.extraGroups.vboxusers.members = ["alex"];
virtualisation = {
virtualbox.host = {