common stuff
This commit is contained in:
parent
d50f5b9c65
commit
451b92c3e9
@ -10,6 +10,7 @@
|
||||
# You can also split up your configuration and import pieces of it here:
|
||||
./nvim.nix
|
||||
./kitty.nix
|
||||
./zsh.nix
|
||||
# ./i3.nix
|
||||
];
|
||||
|
||||
@ -70,6 +71,9 @@
|
||||
services.owncloud-client = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
services.dunst.enable = true;
|
||||
services.flameshot.enable = true;
|
||||
|
||||
services.playerctld.enable = true;
|
||||
|
||||
|
22
home-manager/zsh.nix
Normal file
22
home-manager/zsh.nix
Normal 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;
|
||||
};
|
||||
|
||||
}
|
@ -21,6 +21,8 @@
|
||||
../../modules/nvidia.nix
|
||||
../../modules/docker.nix
|
||||
|
||||
../../modules/xmonad.nix
|
||||
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
@ -41,11 +43,17 @@
|
||||
"/crypto_keyfile.bin" = null;
|
||||
};
|
||||
|
||||
services.xserver.displayManager.autoLogin.enable = false;
|
||||
services.xserver.displayManager.autoLogin.user = "mans";
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
wget
|
||||
neovim
|
||||
openssl
|
||||
];
|
||||
tree
|
||||
file
|
||||
inetutils
|
||||
];
|
||||
|
||||
home-manager = {
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
|
2
nixos/modules/common.nix
Normal file
2
nixos/modules/common.nix
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
@ -12,8 +12,6 @@
|
||||
|
||||
displayManager.defaultSession = "none+i3";
|
||||
displayManager.lightdm.enable = true;
|
||||
displayManager.autoLogin.enable = true;
|
||||
displayManager.autoLogin.user = "mans";
|
||||
|
||||
windowManager.i3 = {
|
||||
enable = true;
|
||||
|
@ -1,13 +1,12 @@
|
||||
{ inputs, config, lib, pkgs, ... }:
|
||||
|
||||
|
||||
{
|
||||
users.users = {
|
||||
mans = {
|
||||
isNormalUser = true;
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDub2v/G51kGDqhQ4o7LN5ncq1oS0e14cjlibsPSfuPsGQBSFMojAUN8sYf43PrlzJs1nZsA3teF9SLmuWcyzcNXGKclhbj0AhN470l/G2SoEcIKDTgVJwNeQ7A/qzFSxmXIV7rmiPPADAyq0ykQA9MAD3f/+4KPiv3DgcU+9ZkSD1nbh4TGld44OLr70ozWBEdqlaUETIXKleEq/RbMcNi3YD89opafeeKpt6tMQydxcIFLUMimq3PiYVjJk4bypjB2r/jMAgnrE6nm96L8R8EZFMWsKpaL2s52NX90VIB69VMyQTdKdHEtxRWIwFR68E3YkYfyGZ5gyNIOaG4l0FyBVux21KxpR1kjhgm2JNw2moG0qwkpFI+Lu+3hqvUu0OM8otTpqGMWjTVs0yYsmIqwnEzEqAifdWxcLus6QLmz+61ajyQBlPBkJ6qFr9MhFvQOnuaUB461SkN/Rah3PU2wUSO9VvCcan2+l3M5zP2QJfPGfdS/mUHPuqCVzzXjNc= mzies@DESKTOP-AKMBK3I"
|
||||
];
|
||||
extraGroups = [ "wheel" "networkmanager" ];
|
||||
};
|
||||
users.users.mans = {
|
||||
isNormalUser = true;
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDub2v/G51kGDqhQ4o7LN5ncq1oS0e14cjlibsPSfuPsGQBSFMojAUN8sYf43PrlzJs1nZsA3teF9SLmuWcyzcNXGKclhbj0AhN470l/G2SoEcIKDTgVJwNeQ7A/qzFSxmXIV7rmiPPADAyq0ykQA9MAD3f/+4KPiv3DgcU+9ZkSD1nbh4TGld44OLr70ozWBEdqlaUETIXKleEq/RbMcNi3YD89opafeeKpt6tMQydxcIFLUMimq3PiYVjJk4bypjB2r/jMAgnrE6nm96L8R8EZFMWsKpaL2s52NX90VIB69VMyQTdKdHEtxRWIwFR68E3YkYfyGZ5gyNIOaG4l0FyBVux21KxpR1kjhgm2JNw2moG0qwkpFI+Lu+3hqvUu0OM8otTpqGMWjTVs0yYsmIqwnEzEqAifdWxcLus6QLmz+61ajyQBlPBkJ6qFr9MhFvQOnuaUB461SkN/Rah3PU2wUSO9VvCcan2+l3M5zP2QJfPGfdS/mUHPuqCVzzXjNc= mzies@DESKTOP-AKMBK3I"
|
||||
];
|
||||
extraGroups = [ "wheel" "networkmanager" ];
|
||||
};
|
||||
}
|
||||
|
@ -37,4 +37,8 @@
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
};
|
||||
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.options = "--delete-older-than 30d";
|
||||
|
||||
}
|
||||
|
13
nixos/modules/xmonad.nix
Normal file
13
nixos/modules/xmonad.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user