mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: modularize users
This commit is contained in:
parent
63abd85eb0
commit
c81de3eff9
6 changed files with 4 additions and 10 deletions
|
@ -1,66 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
#./atuin.nix
|
||||
#./bash.nix
|
||||
#./btop.nix
|
||||
#./fish.nix
|
||||
#./git.nix
|
||||
#./htop.nix
|
||||
#./neovim
|
||||
#./ssh.nix
|
||||
#./starship.nix
|
||||
#./tmux.nix
|
||||
#./xdg.nix
|
||||
#./zsh.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
username = "myuser";
|
||||
stateVersion = "22.11";
|
||||
packages = with pkgs; [
|
||||
bandwhich
|
||||
btop
|
||||
fd
|
||||
kalker
|
||||
neofetch
|
||||
rclone
|
||||
ripgrep
|
||||
rsync
|
||||
tree
|
||||
];
|
||||
shellAliases = {
|
||||
l = "ls -lahF --group-directories-first --show-control-chars --quoting-style=escape --color=auto";
|
||||
t = "tree -F --dirsfirst -L 2";
|
||||
tt = "tree -F --dirsfirst -L 3 --filelimit 16";
|
||||
ttt = "tree -F --dirsfirst -L 6 --filelimit 16";
|
||||
cpr = "rsync -axHAWXS --numeric-ids --info=progress2";
|
||||
|
||||
md = "mkdir";
|
||||
rmd = "rm --one-file-system -d";
|
||||
cp = "cp -vi";
|
||||
mv = "mv -vi";
|
||||
rm = "rm --one-file-system -I";
|
||||
chmod = "chmod -c --preserve-root";
|
||||
chown = "chown -c --preserve-root";
|
||||
|
||||
vim = "nvim";
|
||||
ip = "ip --color";
|
||||
tmux = "tmux -2";
|
||||
rg = "rg -S";
|
||||
|
||||
p = "cd ~/projects";
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
atuin = {
|
||||
enable = true;
|
||||
settings.auto_sync = false;
|
||||
};
|
||||
bat.enable = true;
|
||||
fzf.enable = true;
|
||||
gpg.enable = true;
|
||||
};
|
||||
|
||||
xdg.configFile."nixpkgs/config.nix".text = "{ allowUnfree = true; }";
|
||||
}
|
|
@ -20,9 +20,8 @@ with lib; {
|
|||
home-manager.users.myuser = {
|
||||
imports = [
|
||||
#impermanence.home-manager.impermanence
|
||||
./core
|
||||
./dev
|
||||
./modules
|
||||
../common
|
||||
./dev.nix
|
||||
#]
|
||||
#++ optionals config.programs.sway.enable [
|
||||
# ./graphical
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./uid.nix
|
||||
];
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; {
|
||||
options = {
|
||||
home.uid = mkOption {
|
||||
type = types.int;
|
||||
example = 1000;
|
||||
description = "The user's uid.";
|
||||
};
|
||||
};
|
||||
config = {
|
||||
assertions = [
|
||||
{
|
||||
assertion = config.home.uid != "";
|
||||
message = "UID could not be determined";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue