mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 18:40:14 +01:00
119 lines
2.4 KiB
Nix
119 lines
2.4 KiB
Nix
|
{
|
||
|
config,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: {
|
||
|
# Define user account
|
||
|
users.users.ronja = {
|
||
|
isNormalUser = true;
|
||
|
description = "Ronja Spiegelberg";
|
||
|
extraGroups = ["networkmanager" "wheel"];
|
||
|
shell = pkgs.zsh;
|
||
|
};
|
||
|
|
||
|
# home manager
|
||
|
home-manager.useUserPackages = true;
|
||
|
home-manager.useGlobalPkgs = true;
|
||
|
home-manager.users.ronja = {
|
||
|
config,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: {
|
||
|
home = {
|
||
|
username = "ronja";
|
||
|
homeDirectory = "/home/ronja";
|
||
|
stateVersion = "22.11";
|
||
|
|
||
|
sessionVariables = {
|
||
|
EDITOR = "nano";
|
||
|
};
|
||
|
|
||
|
packages = with pkgs; [
|
||
|
## Apps
|
||
|
steam
|
||
|
wine-staging
|
||
|
telegram-desktop
|
||
|
tldr
|
||
|
powerline
|
||
|
powerline-fonts
|
||
|
lutris
|
||
|
kdiff3
|
||
|
|
||
|
(lutris.override {
|
||
|
extraPkgs = pkgs: [
|
||
|
# List package dependencies here
|
||
|
];
|
||
|
extraLibraries = pkgs: [
|
||
|
# List library dependencies here
|
||
|
];
|
||
|
})
|
||
|
];
|
||
|
|
||
|
file.".nanorc".text = ''
|
||
|
set linenumbers
|
||
|
set mouse
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
programs = {
|
||
|
home-manager.enable = true;
|
||
|
|
||
|
firefox.enable = true;
|
||
|
command-not-found.enable = true;
|
||
|
dircolors.enable = true;
|
||
|
htop.enable = true;
|
||
|
|
||
|
zsh = {
|
||
|
enable = true;
|
||
|
|
||
|
enableSyntaxHighlighting = true;
|
||
|
enableAutosuggestions = true;
|
||
|
enableVteIntegration = true;
|
||
|
|
||
|
history = {
|
||
|
size = 10000;
|
||
|
path = "${config.xdg.dataHome}/zsh/history";
|
||
|
expireDuplicatesFirst = true;
|
||
|
};
|
||
|
|
||
|
oh-my-zsh = {
|
||
|
enable = true;
|
||
|
theme = "agnoster";
|
||
|
plugins = ["git" "sudo" "systemadmin"];
|
||
|
};
|
||
|
};
|
||
|
|
||
|
git = {
|
||
|
enable = true;
|
||
|
userName = "Ronja Spiegelberg";
|
||
|
userEmail = "ronja.spiegelberg@gmail.com";
|
||
|
|
||
|
extraConfig = {
|
||
|
pull.ff = "only";
|
||
|
init.defaultBranch = "main";
|
||
|
merge.tool = "kdiff3";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
gh = {
|
||
|
enable = true;
|
||
|
enableGitCredentialHelper = true;
|
||
|
};
|
||
|
|
||
|
chromium = {
|
||
|
enable = true;
|
||
|
extensions = [
|
||
|
{
|
||
|
# ublock origin
|
||
|
id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";
|
||
|
}
|
||
|
{
|
||
|
id = "dcpihecpambacapedldabdbpakmachpb";
|
||
|
updateUrl = "https://raw.githubusercontent.com/iamadamdev/bypass-paywalls-chrome/master/updates.xml";
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|