common stuff

This commit is contained in:
Mans Ziesel 2023-06-20 19:10:32 +02:00
parent d50f5b9c65
commit 451b92c3e9
8 changed files with 61 additions and 11 deletions

View File

@ -10,6 +10,7 @@
# You can also split up your configuration and import pieces of it here: # You can also split up your configuration and import pieces of it here:
./nvim.nix ./nvim.nix
./kitty.nix ./kitty.nix
./zsh.nix
# ./i3.nix # ./i3.nix
]; ];
@ -70,6 +71,9 @@
services.owncloud-client = { services.owncloud-client = {
enable = true; enable = true;
}; };
services.dunst.enable = true;
services.flameshot.enable = true;
services.playerctld.enable = true; services.playerctld.enable = true;

22
home-manager/zsh.nix Normal file
View File

@ -0,0 +1,22 @@
{ config, lib, pkgs, ... }:
{
programs.zsh = {
enable = true;
# autocd = true;
# dotDir = ".config/zsh";
# enableAutosuggestions = true;
# enableCompletion = true;
shellAliases = {
l = "exa -l";
ssh = "TERM=xterm-256color ssh";
};
sessionVariables.PROMPT= ''%B%F{green}[%n@%m:%~]%f%b%F{green}$%f '';
};
programs.fzf = {
enable = true;
enableZshIntegration = true;
};
}

View File

@ -21,6 +21,8 @@
../../modules/nvidia.nix ../../modules/nvidia.nix
../../modules/docker.nix ../../modules/docker.nix
../../modules/xmonad.nix
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
@ -41,11 +43,17 @@
"/crypto_keyfile.bin" = null; "/crypto_keyfile.bin" = null;
}; };
services.xserver.displayManager.autoLogin.enable = false;
services.xserver.displayManager.autoLogin.user = "mans";
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
wget wget
neovim neovim
openssl openssl
]; tree
file
inetutils
];
home-manager = { home-manager = {
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };

2
nixos/modules/common.nix Normal file
View File

@ -0,0 +1,2 @@
{
}

View File

@ -12,8 +12,6 @@
displayManager.defaultSession = "none+i3"; displayManager.defaultSession = "none+i3";
displayManager.lightdm.enable = true; displayManager.lightdm.enable = true;
displayManager.autoLogin.enable = true;
displayManager.autoLogin.user = "mans";
windowManager.i3 = { windowManager.i3 = {
enable = true; enable = true;

View File

@ -1,13 +1,12 @@
{ inputs, config, lib, pkgs, ... }: { inputs, config, lib, pkgs, ... }:
{ {
users.users = { users.users.mans = {
mans = { isNormalUser = true;
isNormalUser = true; openssh.authorizedKeys.keys = [
openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDub2v/G51kGDqhQ4o7LN5ncq1oS0e14cjlibsPSfuPsGQBSFMojAUN8sYf43PrlzJs1nZsA3teF9SLmuWcyzcNXGKclhbj0AhN470l/G2SoEcIKDTgVJwNeQ7A/qzFSxmXIV7rmiPPADAyq0ykQA9MAD3f/+4KPiv3DgcU+9ZkSD1nbh4TGld44OLr70ozWBEdqlaUETIXKleEq/RbMcNi3YD89opafeeKpt6tMQydxcIFLUMimq3PiYVjJk4bypjB2r/jMAgnrE6nm96L8R8EZFMWsKpaL2s52NX90VIB69VMyQTdKdHEtxRWIwFR68E3YkYfyGZ5gyNIOaG4l0FyBVux21KxpR1kjhgm2JNw2moG0qwkpFI+Lu+3hqvUu0OM8otTpqGMWjTVs0yYsmIqwnEzEqAifdWxcLus6QLmz+61ajyQBlPBkJ6qFr9MhFvQOnuaUB461SkN/Rah3PU2wUSO9VvCcan2+l3M5zP2QJfPGfdS/mUHPuqCVzzXjNc= mzies@DESKTOP-AKMBK3I"
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDub2v/G51kGDqhQ4o7LN5ncq1oS0e14cjlibsPSfuPsGQBSFMojAUN8sYf43PrlzJs1nZsA3teF9SLmuWcyzcNXGKclhbj0AhN470l/G2SoEcIKDTgVJwNeQ7A/qzFSxmXIV7rmiPPADAyq0ykQA9MAD3f/+4KPiv3DgcU+9ZkSD1nbh4TGld44OLr70ozWBEdqlaUETIXKleEq/RbMcNi3YD89opafeeKpt6tMQydxcIFLUMimq3PiYVjJk4bypjB2r/jMAgnrE6nm96L8R8EZFMWsKpaL2s52NX90VIB69VMyQTdKdHEtxRWIwFR68E3YkYfyGZ5gyNIOaG4l0FyBVux21KxpR1kjhgm2JNw2moG0qwkpFI+Lu+3hqvUu0OM8otTpqGMWjTVs0yYsmIqwnEzEqAifdWxcLus6QLmz+61ajyQBlPBkJ6qFr9MhFvQOnuaUB461SkN/Rah3PU2wUSO9VvCcan2+l3M5zP2QJfPGfdS/mUHPuqCVzzXjNc= mzies@DESKTOP-AKMBK3I" ];
]; extraGroups = [ "wheel" "networkmanager" ];
extraGroups = [ "wheel" "networkmanager" ];
};
}; };
} }

View File

@ -37,4 +37,8 @@
auto-optimise-store = true; auto-optimise-store = true;
}; };
}; };
nix.gc.automatic = true;
nix.gc.options = "--delete-older-than 30d";
} }

13
nixos/modules/xmonad.nix Normal file
View File

@ -0,0 +1,13 @@
{ config, lib, pkgs, ... }:
{
environment.pathsToLink = [ "/libexec" ]; # links /libexec from derivations to /run/current-system/sw
# Define the i3 window manager configuration
services.xserver = {
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
};
};
}