moved users/willifan to home-manager module

This commit is contained in:
willifan 2024-12-24 17:24:11 +01:00 committed by willifan
parent 2838549a4c
commit 184b0866d4
56 changed files with 243 additions and 276 deletions

View file

@ -17,6 +17,7 @@
../../modules/common
../../modules/server
../../modules/home-manager
];

View file

@ -6,6 +6,7 @@
../../modules/common
../../modules/desktop
../../modules/home-manager
];
common.syncthing = {

View file

@ -6,6 +6,7 @@
../../modules/common
../../modules/desktop
../../modules/home-manager
];
}

View file

@ -6,6 +6,7 @@
../../modules/common
../../modules/desktop
../../modules/home-manager
];

View file

@ -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 = {

View file

@ -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)'';
};
};
};
};

View file

@ -0,0 +1,8 @@
{ pkgs, ...}:
{
environment.systemPackages = with pkgs; [
tealdeer
];
}

33
modules/common/stylix.nix Normal file
View 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;
};
}

View file

@ -1,9 +1,10 @@
{ ... }:
{ pkgs, ... }:
{
users.users.willifan = {
isNormalUser = true;
description = "willifan";
extraGroups = [ "networkmanager" "wheel" "syncthing" ];
shell = pkgs.bash;
};
}

View file

@ -0,0 +1,16 @@
{ ... }:
{
home-manager.users.willifan = {
imports = [
./shell
./tmux
./utils
./git.nix
./stylix.nix
];
home.stateVersion = "23.11";
};
}

View file

@ -0,0 +1,12 @@
{ pkgs, ... }:
{
programs.git = {
enable = true;
package = pkgs.gitAndTools.gitFull;
userName = "willifan";
userEmail = "willifan@pm.me";
extraConfig = {
init.defaultBranch = "main";
};
};
}

View file

@ -0,0 +1,20 @@
{ ... }:
{
programs = {
bash = {
enable = true;
shellAliases = {
ls = "eza";
};
};
starship = {
enableBashIntegration = true;
};
};
# programs.bash.blesh.enable = true;
}

View file

@ -9,9 +9,7 @@
./ssh.nix
./starship.nix
./zoxide.nix
./zsh.nix
];
users.users.willifan.shell = pkgs.bash;
}

View file

@ -0,0 +1,8 @@
{ ... }:
{
programs.eza = {
enable = true;
};
}

View 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"
];
};
};
}

View file

@ -0,0 +1,13 @@
{ ... }:
{
programs = {
nushell = {
enable = true;
};
starship = {
enableNushellIntegration = true;
};
};
}

View file

@ -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";

View file

@ -0,0 +1,11 @@
{ ... }:
{
programs.zoxide = {
enable = true;
options = [
"--cmd cd"
];
};
}

View file

@ -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;
};
home-manager.users.willifan = {
stylix = {
iconTheme = {
enable = true;
autoEnable = true;
};
};
home-manager.users.willifan = {
gtk.iconTheme = {
name = "Papirus-Dark";
dark = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
};
}

View file

@ -0,0 +1,8 @@
{ ... }:
{
programs.tmux = {
enable = true;
};
}

View file

@ -0,0 +1,9 @@
{ ... }:
{
services.avizo.enable = true;
programs.bat.enable = true;
programs.btop.enable = true;
programs.yazi.enable = true;
}

View file

@ -1,4 +1,2 @@
{ ... }:
{
}
{}

View file

@ -1,4 +1,2 @@
{ ... }:
{
}
{}

View file

@ -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";
}

View file

@ -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";
};
};
};
}

View file

@ -1,20 +0,0 @@
{ ... }:
{
home-manager.users.willifan = {
programs = {
bash = {
enable = true;
shellAliases = {
ls = "eza";
};
};
starship = {
enableBashIntegration = true;
};
};
};
# programs.bash.blesh.enable = true;
}

View file

@ -1,10 +0,0 @@
{ ... }:
{
home-manager.users.willifan = {
programs.eza = {
enable = true;
};
};
}

View file

@ -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"
];
};
};
};
}

View file

@ -1,15 +0,0 @@
{ ... }:
{
home-manager.users.willifan = {
programs = {
nushell = {
enable = true;
};
starship = {
enableNushellIntegration = true;
};
};
};
}

View file

@ -1,6 +0,0 @@
{ ... }:
{
home-manager.users.willifan = {
};
}

View file

@ -1,13 +0,0 @@
{ ... }:
{
home-manager.users.willifan = {
programs.zoxide = {
enable = true;
options = [
"--cmd cd"
];
};
};
}

View file

@ -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";
};
}

View file

@ -1,7 +0,0 @@
{ ... }:
{
imports = [
./stylix.nix
];
}

View file

@ -1,10 +0,0 @@
{ ... }:
{
home-manager.users.willifan = {
programs.tmux = {
enable = true;
};
};
}

View file

@ -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
];
}

View file

@ -1,8 +1,7 @@
{ hostname, type, ... }:
{ type, hostname, ... }:
{
imports = [
./common
./${type}
./${hostname}
./${type}
];
}

View file

@ -4,7 +4,6 @@
imports = [
./embedded.nix
./logic-analyzer.nix
./rust.nix
./vscodium.nix
];

View file

@ -1,14 +0,0 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
clang
gcc
llvmPackages.bintools
rustup
probe-rs
cargo-binutils
];
}