[general] add work and gaming user, tweak configs
feat: added new ssh configuration modules for home-manager feat: add user work with configurations for my work environment feat: added gaming user with configuration for my gaming enviornment eg. lutris and steam Signed-off-by: Jo <johannesreckers2006@gmail.com>
This commit is contained in:
parent
75e635ad4b
commit
339bd28d1d
14 changed files with 280 additions and 58 deletions
42
users/gaming/home.nix
Normal file
42
users/gaming/home.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
outputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./desktop/plasma.nix
|
||||
];
|
||||
|
||||
nixpkgs = {
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
|
||||
# Workaround for https://github.com/nix-community/home-manager/issues/2942
|
||||
allowUnfreePredicate = _: true;
|
||||
};
|
||||
};
|
||||
|
||||
# Username and home directory
|
||||
home = {
|
||||
username = "gaming";
|
||||
homeDirectory = "/home/gaming";
|
||||
};
|
||||
|
||||
# General packages
|
||||
home.packages = with pkgs; [
|
||||
lutris
|
||||
vesktop
|
||||
steam
|
||||
];
|
||||
|
||||
# Enable home-manager
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
# Nicely reload system units when changing configs
|
||||
systemd.user.startServices = "sd-switch";
|
||||
|
||||
home.stateVersion = "23.05";
|
||||
}
|
27
users/jo/desktop/kde.nix
Normal file
27
users/jo/desktop/kde.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
outputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
inputs.plasma-manager.homeManagerModules.plasma-manager
|
||||
outputs.homeManagerModules.themes.gruvbox.plasma
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
kdePackages.sierra-breeze-enhanced
|
||||
kde-rounded-corners
|
||||
];
|
||||
|
||||
# Plasma configuration
|
||||
programs.plasma = {
|
||||
enable = true;
|
||||
|
||||
workspace = {
|
||||
clickItemTo = "select";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -6,9 +6,9 @@
|
|||
outputs,
|
||||
...
|
||||
}: {
|
||||
# You can import other home-manager modules here
|
||||
imports = [
|
||||
./desktop/kde.nix
|
||||
outputs.homeManagerModules.development.ssh
|
||||
];
|
||||
|
||||
nixpkgs = {
|
||||
|
@ -28,20 +28,19 @@
|
|||
|
||||
# General packages
|
||||
home.packages = with pkgs; [
|
||||
spotify
|
||||
qflipper
|
||||
wineWowPackages.waylandFull
|
||||
vesktop
|
||||
|
||||
# For development
|
||||
avra
|
||||
avrdude
|
||||
vscodium
|
||||
jetbrains.phpstorm
|
||||
teams-for-linux
|
||||
enpass
|
||||
thunderbird
|
||||
git
|
||||
bun
|
||||
];
|
||||
|
||||
# home.file.".config/gtk-4.0/gtk.css".source = "${orchis}/share/themes/Orchis-Green-Dark-Compact/gtk-4.0/gtk.css";
|
||||
|
||||
# Enable home-manager
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
|
@ -52,17 +51,40 @@
|
|||
userEmail = "jo@thevoid.cafe";
|
||||
userName = "Jo";
|
||||
|
||||
# Enable git-credential-helper
|
||||
extraConfig = {
|
||||
credential.helper = "${
|
||||
pkgs.git.override { withLibsecret = true; }
|
||||
}/bin/git-credential-libsecret";
|
||||
user = {
|
||||
signingkey = "$HOME/.ssh/id_ed25519";
|
||||
};
|
||||
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
};
|
||||
|
||||
color = {
|
||||
ui = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.gh = {
|
||||
enable = true;
|
||||
|
||||
gitCredentialHelper = {
|
||||
enable = true;
|
||||
|
||||
hosts = [
|
||||
"https://github.com"
|
||||
"https://gist.github.com"
|
||||
"https://git.thevoid.cafe"
|
||||
"https://gitlab.org"
|
||||
"https://git.semiko.dev"
|
||||
"https://bitbucket.org"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Nicely reload system units when changing configs
|
||||
systemd.user.startServices = "sd-switch";
|
||||
|
||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||
home.stateVersion = "23.05";
|
||||
}
|
27
users/work/desktop/plasma.nix
Normal file
27
users/work/desktop/plasma.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
outputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
inputs.plasma-manager.homeManagerModules.plasma-manager
|
||||
outputs.homeManagerModules.themes.gruvbox.plasma
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
kdePackages.sierra-breeze-enhanced
|
||||
kde-rounded-corners
|
||||
];
|
||||
|
||||
# Plasma configuration
|
||||
programs.plasma = {
|
||||
enable = true;
|
||||
|
||||
workspace = {
|
||||
clickItemTo = "select";
|
||||
};
|
||||
};
|
||||
}
|
39
users/work/home.nix
Normal file
39
users/work/home.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
outputs,
|
||||
inputs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./desktop/plasma.nix
|
||||
outputs.homeManagerModules.development.ssh
|
||||
];
|
||||
|
||||
nixpkgs = {
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
|
||||
# Workaround for https://github.com/nix-community/home-manager/issues/2942
|
||||
allowUnfreePredicate = _: true;
|
||||
};
|
||||
};
|
||||
|
||||
home = {
|
||||
username = "work";
|
||||
homeDirectory = "/home/work";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
jetbrains.phpstorm
|
||||
thunderbird
|
||||
teams-for-linux
|
||||
enpass
|
||||
vscodium
|
||||
];
|
||||
|
||||
systemd.user.startServices = "sd-switch";
|
||||
|
||||
home.stateVersion = "23.05";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue