mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: begin writing user config
This commit is contained in:
parent
abe369ba0a
commit
4b4268b537
14 changed files with 209 additions and 94 deletions
67
users/myuser/core/default.nix
Normal file
67
users/myuser/core/default.nix
Normal file
|
@ -0,0 +1,67 @@
|
|||
{ 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
|
||||
colorcheck
|
||||
fd
|
||||
kalker
|
||||
neofetch
|
||||
rclone
|
||||
ripgrep
|
||||
rsync
|
||||
];
|
||||
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;
|
||||
zoxide.enable = true;
|
||||
};
|
||||
|
||||
xdg.configFile."nixpkgs/config.nix".text = "{ allowUnfree = true; }";
|
||||
}
|
32
users/myuser/default.nix
Normal file
32
users/myuser/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
with lib;
|
||||
{
|
||||
users.groups.myuser.gid = config.users.users.myuser.uid;
|
||||
users.users.myuser = {
|
||||
uid = 1000;
|
||||
createHome = true;
|
||||
group = "myuser";
|
||||
extraGroups = [ "wheel" "input" "video" ]
|
||||
++ optionals config.sound.enable [ "audio" ];
|
||||
isNormalUser = true;
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
home-manager.users.myuser = {
|
||||
imports = [
|
||||
#impermanence.home-manager.impermanence
|
||||
./core
|
||||
./dev
|
||||
#]
|
||||
#++ optionals config.programs.sway.enable [
|
||||
# ./graphical
|
||||
# ./graphical/sway
|
||||
#] ++ optionals config.services.xserver.windowManager.i3.enable [
|
||||
# ./graphical
|
||||
# ./graphical/i3
|
||||
];
|
||||
|
||||
home.username = config.users.users.myuser.name;
|
||||
home.uid = config.users.users.myuser.uid;
|
||||
};
|
||||
}
|
0
users/myuser/dev/default.nix
Normal file
0
users/myuser/dev/default.nix
Normal file
Loading…
Add table
Add a link
Reference in a new issue