moved users/willifan to home-manager module
This commit is contained in:
parent
2838549a4c
commit
184b0866d4
56 changed files with 243 additions and 276 deletions
|
@ -17,6 +17,7 @@
|
|||
|
||||
../../modules/common
|
||||
../../modules/server
|
||||
../../modules/home-manager
|
||||
|
||||
];
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
../../modules/common
|
||||
../../modules/desktop
|
||||
../../modules/home-manager
|
||||
];
|
||||
|
||||
common.syncthing = {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
../../modules/common
|
||||
../../modules/desktop
|
||||
../../modules/home-manager
|
||||
|
||||
];
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
../../modules/common
|
||||
../../modules/desktop
|
||||
../../modules/home-manager
|
||||
|
||||
];
|
||||
|
||||
|
|
|
@ -1,13 +1,20 @@
|
|||
{ hostname, ... }:
|
||||
{
|
||||
imports = [
|
||||
./nixvim
|
||||
|
||||
./autoupdate.nix
|
||||
./envvar.nix
|
||||
./garbage-collect.nix
|
||||
./keyd.nix
|
||||
./locales.nix
|
||||
./mimetype.nix
|
||||
./optimise.nix
|
||||
./packages.nix
|
||||
./sops.nix
|
||||
./stylix.nix
|
||||
./syncthing.nix
|
||||
./users.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
|
|
|
@ -8,14 +8,14 @@
|
|||
settings = {
|
||||
main = {
|
||||
rightalt = "overload(altgr, rightalt)";
|
||||
capslock = "overload(control, esc)";
|
||||
};
|
||||
altgr = {
|
||||
capslock = "overload(control, esc)";
|
||||
};
|
||||
altgr = {
|
||||
a = ''macro(compose a ")'';
|
||||
o = ''macro(compose o ")'';
|
||||
u = ''macro(compose u ")'';
|
||||
s = ''macro(compose s s)'';
|
||||
};
|
||||
u = ''macro(compose u ")'';
|
||||
s = ''macro(compose s s)'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
8
modules/common/packages.nix
Normal file
8
modules/common/packages.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ pkgs, ...}:
|
||||
{
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
tealdeer
|
||||
];
|
||||
|
||||
}
|
33
modules/common/stylix.nix
Normal file
33
modules/common/stylix.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
wallpaper = pkgs.fetchurl {
|
||||
url = "https://files.huwe.mooo.com/Oneshot.png";
|
||||
hash = "sha256-LaIzLCW86sbldE9lk7psbYKaTCjwaPLcoD3il6FalTw=";
|
||||
};
|
||||
plymouth_logo = pkgs.fetchurl {
|
||||
url = "https://files.huwe.mooo.com/outlinenobackground.png";
|
||||
hash = "sha256-HdErySgSwNSPEHyBywLyZCAss4vUhsY8BvCPe5hST6Q=";
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
stylix = {
|
||||
enable = true;
|
||||
|
||||
autoEnable = true;
|
||||
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/pasque.yaml";
|
||||
override = {
|
||||
base0D = "F3196E";
|
||||
base0F = "CFAACF";
|
||||
};
|
||||
|
||||
image = wallpaper;
|
||||
|
||||
polarity = "dark";
|
||||
|
||||
targets.plymouth.logo = plymouth_logo;
|
||||
|
||||
};
|
||||
|
||||
}
|
|
@ -1,9 +1,10 @@
|
|||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
users.users.willifan = {
|
||||
isNormalUser = true;
|
||||
description = "willifan";
|
||||
extraGroups = [ "networkmanager" "wheel" "syncthing" ];
|
||||
shell = pkgs.bash;
|
||||
};
|
||||
|
||||
}
|
16
modules/home-manager/default.nix
Normal file
16
modules/home-manager/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ ... }:
|
||||
{
|
||||
home-manager.users.willifan = {
|
||||
imports = [
|
||||
./shell
|
||||
./tmux
|
||||
./utils
|
||||
|
||||
./git.nix
|
||||
./stylix.nix
|
||||
];
|
||||
|
||||
home.stateVersion = "23.11";
|
||||
};
|
||||
|
||||
}
|
12
modules/home-manager/git.nix
Normal file
12
modules/home-manager/git.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
package = pkgs.gitAndTools.gitFull;
|
||||
userName = "willifan";
|
||||
userEmail = "willifan@pm.me";
|
||||
extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
};
|
||||
};
|
||||
}
|
20
modules/home-manager/shell/bash.nix
Normal file
20
modules/home-manager/shell/bash.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
programs = {
|
||||
bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
ls = "eza";
|
||||
};
|
||||
};
|
||||
|
||||
starship = {
|
||||
enableBashIntegration = true;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
# programs.bash.blesh.enable = true;
|
||||
|
||||
}
|
|
@ -9,9 +9,7 @@
|
|||
./ssh.nix
|
||||
./starship.nix
|
||||
./zoxide.nix
|
||||
./zsh.nix
|
||||
];
|
||||
|
||||
users.users.willifan.shell = pkgs.bash;
|
||||
|
||||
}
|
8
modules/home-manager/shell/eza.nix
Normal file
8
modules/home-manager/shell/eza.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
programs.eza = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
}
|
53
modules/home-manager/shell/hyfetch.nix
Normal file
53
modules/home-manager/shell/hyfetch.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.hyfetch = {
|
||||
enable = true;
|
||||
settings = {
|
||||
preset = "transgender";
|
||||
mode = "rgb";
|
||||
light_dark = "dark";
|
||||
lightness = 0.69;
|
||||
color_align = {
|
||||
mode = "horizontal";
|
||||
custom_colors = [];
|
||||
fore_back = null;
|
||||
};
|
||||
backend = "fastfetch";
|
||||
args = null;
|
||||
distro = null;
|
||||
pride_month_shown = [];
|
||||
pride_month_disable = false;
|
||||
};
|
||||
};
|
||||
programs.fastfetch = {
|
||||
enable = true;
|
||||
settings = {
|
||||
modules = [
|
||||
"title"
|
||||
"separator"
|
||||
"os"
|
||||
"host"
|
||||
{
|
||||
type = "localip";
|
||||
showIpv6 = false;
|
||||
showMac = false;
|
||||
showSpeed = false;
|
||||
showMtu = false;
|
||||
showLoop = false;
|
||||
showFlags = false;
|
||||
}
|
||||
"kernel"
|
||||
"uptime"
|
||||
"packages"
|
||||
"shell"
|
||||
"wm"
|
||||
"cpu"
|
||||
"gpu"
|
||||
"memory"
|
||||
"break"
|
||||
"colors"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
13
modules/home-manager/shell/nushell.nix
Normal file
13
modules/home-manager/shell/nushell.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
programs = {
|
||||
nushell = {
|
||||
enable = true;
|
||||
};
|
||||
starship = {
|
||||
enableNushellIntegration = true;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -1,4 +1,3 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
}
|
|
@ -1,11 +1,11 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
|
||||
home-manager.users.willifan.programs.starship = {
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
format = lib.concatStrings [
|
||||
"[ ](fg:twelve bg:trans_blue)"
|
||||
"[ ](fg:twelve bg:trans_blue)"
|
||||
"[ ](bg:trans_blue)[ ](fg:trans_blue bg:trans_pink)"
|
||||
"$hostname"
|
||||
"[ ](bg:trans_pink)[ ](fg:trans_pink bg:trans_white)"
|
||||
|
@ -22,13 +22,13 @@
|
|||
right_format = lib.concatStrings [
|
||||
"$cmd_duration"
|
||||
"("
|
||||
"$python"
|
||||
"$conda"
|
||||
"$c"
|
||||
"$cmake"
|
||||
"$golang"
|
||||
"$haskell"
|
||||
"$rust"
|
||||
"$python"
|
||||
"$conda"
|
||||
"$c"
|
||||
"$cmake"
|
||||
"$golang"
|
||||
"$haskell"
|
||||
"$rust"
|
||||
")"
|
||||
];
|
||||
|
||||
|
@ -47,23 +47,23 @@
|
|||
sixth = config.lib.stylix.colors.withHashtag.base05;
|
||||
seventh = config.lib.stylix.colors.withHashtag.base06;
|
||||
eighth = config.lib.stylix.colors.withHashtag.base07;
|
||||
baseeight = config.lib.stylix.colors.withHashtag.base08;
|
||||
basenine = config.lib.stylix.colors.withHashtag.base09;
|
||||
ten = config.lib.stylix.colors.withHashtag.base0A;
|
||||
eleven = config.lib.stylix.colors.withHashtag.base0B;
|
||||
baseeight = config.lib.stylix.colors.withHashtag.base08;
|
||||
basenine = config.lib.stylix.colors.withHashtag.base09;
|
||||
ten = config.lib.stylix.colors.withHashtag.base0A;
|
||||
eleven = config.lib.stylix.colors.withHashtag.base0B;
|
||||
twelve = config.lib.stylix.colors.withHashtag.base0C;
|
||||
thirteen = config.lib.stylix.colors.withHashtag.base0D;
|
||||
fourteen = config.lib.stylix.colors.withHashtag.base0E;
|
||||
fourteen = config.lib.stylix.colors.withHashtag.base0E;
|
||||
fifteen = config.lib.stylix.colors.withHashtag.base0F;
|
||||
trans_blue = "#55CDFD";
|
||||
trans_pink = "#F6AAB7";
|
||||
trans_white = "#FFFFFF";
|
||||
pride_red = "#FF1E26";
|
||||
pride_orange = "#FE941E";
|
||||
pride_yellow = "#FFFF00";
|
||||
pride_green = "#06BD00";
|
||||
pride_blue = "#001A98";
|
||||
pride_violet = "#760088";
|
||||
trans_blue = "#55CDFD";
|
||||
trans_pink = "#F6AAB7";
|
||||
trans_white = "#FFFFFF";
|
||||
pride_red = "#FF1E26";
|
||||
pride_orange = "#FE941E";
|
||||
pride_yellow = "#FFFF00";
|
||||
pride_green = "#06BD00";
|
||||
pride_blue = "#001A98";
|
||||
pride_violet = "#760088";
|
||||
# Text color:
|
||||
black = "#272D37";
|
||||
white = "#CBF4F8";
|
11
modules/home-manager/shell/zoxide.nix
Normal file
11
modules/home-manager/shell/zoxide.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
options = [
|
||||
"--cmd cd"
|
||||
];
|
||||
};
|
||||
|
||||
}
|
|
@ -1,9 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
plymouth_logo = pkgs.fetchurl {
|
||||
url = "https://files.huwe.mooo.com/outlinenobackground.png";
|
||||
hash = "sha256-HdErySgSwNSPEHyBywLyZCAss4vUhsY8BvCPe5hST6Q=";
|
||||
};
|
||||
wallpaper = pkgs.fetchurl {
|
||||
url = "https://files.huwe.mooo.com/Oneshot.png";
|
||||
hash = "sha256-LaIzLCW86sbldE9lk7psbYKaTCjwaPLcoD3il6FalTw=";
|
||||
|
@ -59,22 +55,12 @@ in
|
|||
|
||||
polarity = "dark";
|
||||
|
||||
targets.plymouth.logo = plymouth_logo;
|
||||
iconTheme = {
|
||||
enable = true;
|
||||
dark = "Papirus-Dark";
|
||||
package = pkgs.papirus-icon-theme;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
home-manager.users.willifan = {
|
||||
stylix = {
|
||||
enable = true;
|
||||
autoEnable = true;
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users.willifan = {
|
||||
gtk.iconTheme = {
|
||||
name = "Papirus-Dark";
|
||||
package = pkgs.papirus-icon-theme;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
8
modules/home-manager/tmux/default.nix
Normal file
8
modules/home-manager/tmux/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
}
|
9
modules/home-manager/utils/default.nix
Normal file
9
modules/home-manager/utils/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
services.avizo.enable = true;
|
||||
programs.bat.enable = true;
|
||||
programs.btop.enable = true;
|
||||
programs.yazi.enable = true;
|
||||
|
||||
}
|
|
@ -1,4 +1,2 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
}
|
||||
{}
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
}
|
||||
{}
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./nixvim
|
||||
./shell
|
||||
./theme
|
||||
./tmux
|
||||
./utils
|
||||
|
||||
./envvar.nix
|
||||
./git.nix
|
||||
./locales.nix
|
||||
./user.nix
|
||||
];
|
||||
|
||||
home-manager.users.willifan.home.stateVersion = "23.11";
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home-manager.users.willifan = {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
package = pkgs.gitAndTools.gitFull;
|
||||
userName = "willifan";
|
||||
userEmail = "willifan@proton.me";
|
||||
extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
home-manager.users.willifan = {
|
||||
programs = {
|
||||
bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
ls = "eza";
|
||||
};
|
||||
};
|
||||
starship = {
|
||||
enableBashIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# programs.bash.blesh.enable = true;
|
||||
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
home-manager.users.willifan = {
|
||||
programs.eza = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -1,55 +0,0 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
home-manager.users.willifan = {
|
||||
programs.hyfetch = {
|
||||
enable = true;
|
||||
settings = {
|
||||
preset = "transgender";
|
||||
mode = "rgb";
|
||||
light_dark = "dark";
|
||||
lightness = 0.69;
|
||||
color_align = {
|
||||
mode = "horizontal";
|
||||
custom_colors = [];
|
||||
fore_back = null;
|
||||
};
|
||||
backend = "fastfetch";
|
||||
args = null;
|
||||
distro = null;
|
||||
pride_month_shown = [];
|
||||
pride_month_disable = false;
|
||||
};
|
||||
};
|
||||
programs.fastfetch = {
|
||||
enable = true;
|
||||
settings = {
|
||||
modules = [
|
||||
"title"
|
||||
"separator"
|
||||
"os"
|
||||
"host"
|
||||
{
|
||||
type = "localip";
|
||||
showIpv6 = false;
|
||||
showMac = false;
|
||||
showSpeed = false;
|
||||
showMtu = false;
|
||||
showLoop = false;
|
||||
showFlags = false;
|
||||
}
|
||||
"kernel"
|
||||
"uptime"
|
||||
"packages"
|
||||
"shell"
|
||||
"wm"
|
||||
"cpu"
|
||||
"gpu"
|
||||
"memory"
|
||||
"break"
|
||||
"colors"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
home-manager.users.willifan = {
|
||||
programs = {
|
||||
nushell = {
|
||||
enable = true;
|
||||
};
|
||||
starship = {
|
||||
enableNushellIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
home-manager.users.willifan = {
|
||||
|
||||
};
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
home-manager.users.willifan = {
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
options = [
|
||||
"--cmd cd"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
zsh-powerlevel10k
|
||||
];
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
promptInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||
};
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./stylix.nix
|
||||
];
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
home-manager.users.willifan = {
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
|
||||
|
||||
home-manager.users.willifan = {
|
||||
services.avizo.enable = true;
|
||||
programs.bat.enable = true;
|
||||
programs.btop.enable = true;
|
||||
programs.yazi.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
||||
tealdeer
|
||||
|
||||
];
|
||||
|
||||
}
|
|
@ -1,8 +1,7 @@
|
|||
{ hostname, type, ... }:
|
||||
{ type, hostname, ... }:
|
||||
{
|
||||
imports = [
|
||||
./common
|
||||
./${type}
|
||||
./${hostname}
|
||||
./${type}
|
||||
];
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
imports = [
|
||||
./embedded.nix
|
||||
./logic-analyzer.nix
|
||||
./rust.nix
|
||||
./vscodium.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
||||
clang
|
||||
gcc
|
||||
llvmPackages.bintools
|
||||
rustup
|
||||
|
||||
probe-rs
|
||||
cargo-binutils
|
||||
|
||||
];
|
||||
}
|
|
@ -10,4 +10,4 @@
|
|||
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{serial}=="*vial:f64c2b3c*", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
|
||||
'';
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue