This commit is contained in:
Hadi
2024-05-02 15:40:12 +02:00
parent 92ec6a5ea8
commit 81ab14b256
86 changed files with 227 additions and 146 deletions

4
home/apps/default.nix Normal file
View File

@@ -0,0 +1,4 @@
{
imports =
[ ./kitty ./lf ./neofetch ./nvim ./qutebrowser ./spicetify ./wofi ./cava ];
}

View File

@@ -1,4 +1,4 @@
{ pkgs, config, ... }: {
{ pkgs, ... }: {
home.packages = with pkgs; [ pistol ];
programs.lf = {

View File

@@ -49,13 +49,21 @@
odd.fg = "#${config.theme.colors.fg}";
even.bg = "#${config.theme.colors.bg}";
even.fg = "#${config.theme.colors.fg}";
selected.odd.bg = "#${config.theme.colors.primary-bg}";
selected.odd.fg = "#${config.theme.colors.primary-fg}";
selected.even.bg = "#${config.theme.colors.primary-bg}";
selected.even.fg = "#${config.theme.colors.primary-fg}";
indicator.error = "#${config.theme.colors.color1}";
indicator.start = "#${config.theme.colors.alt-bg}";
indicator.stop = "#${config.theme.colors.alt-bg}";
selected = {
odd = {
bg = "#${config.theme.colors.primary-bg}";
fg = "#${config.theme.colors.primary-fg}";
};
even = {
bg = "#${config.theme.colors.primary-bg}";
fg = "#${config.theme.colors.primary-fg}";
};
};
indicator = {
error = "#${config.theme.colors.color1}";
start = "#${config.theme.colors.alt-bg}";
stop = "#${config.theme.colors.alt-bg}";
};
};
hints = {
@@ -65,10 +73,14 @@
};
completion = {
category.bg = "#${config.theme.colors.bg}";
category.fg = "#${config.theme.colors.fg}";
category.border.top = "#${config.theme.colors.bg}";
category.border.bottom = "#${config.theme.colors.bg}";
category = {
bg = "#${config.theme.colors.bg}";
fg = "#${config.theme.colors.fg}";
border = {
top = "#${config.theme.colors.bg}";
bottom = "#${config.theme.colors.bg}";
};
};
odd.bg = "#${config.theme.colors.bg}";
even.bg = "#${config.theme.colors.bg}";
@@ -77,11 +89,13 @@
match.fg = "#${config.theme.colors.primary-bg}";
item.selected.bg = "#${config.theme.colors.primary-bg}";
item.selected.border.top = "#${config.theme.colors.primary-bg}";
item.selected.border.bottom = "#${config.theme.colors.primary-bg}";
item.selected.fg = "#${config.theme.colors.primary-fg}";
item.selected.match.fg = "#${config.theme.colors.primary-fg}";
item.selected = {
bg = "#${config.theme.colors.primary-bg}";
border.top = "#${config.theme.colors.primary-bg}";
border.bottom = "#${config.theme.colors.primary-bg}";
fg = "#${config.theme.colors.primary-fg}";
match.fg = "#${config.theme.colors.primary-fg}";
};
};
statusbar = {
@@ -136,6 +150,7 @@
content = {
autoplay = false;
javascript.clipboard = "access";
javascript.enabled = true;
pdfjs = true;
};

View File

@@ -1,12 +0,0 @@
{
programs.git = {
enable = true;
userName = "Hadi"; # CHANGEME
userEmail = "112569860+anotherhadi@users.noreply.github.com"; # CHANGEME
extraConfig = {
init.defaultBranch = "main";
# Automatically track remote branch
push.autoSetupRemote = true;
};
};
}

View File

@@ -1,29 +1,12 @@
{ config, pkgs, ... }: {
{ pkgs, ... }:
let variable = import ../variables.nix;
in {
imports = [
./hyprland
./nvim
./waybar
./kitty
./dunst
./wlogout
./wofi
./qutebrowser
./git
./shell
./misc
./scripts
./neofetch
./spicetify
./theme
./wallpapers
./lf
./sops # REMOVE
];
imports = [ ./themes ./system ./scripts ./apps ];
home = {
username = "hadi"; # CHANGEME
homeDirectory = "/home/hadi"; # CHANGEME
username = variable.username;
homeDirectory = variable.homeDirectory;
packages = with pkgs; [
swappy
@@ -49,6 +32,7 @@
bc
gcc
blueman
zip
unzip
xdg_utils
tldr
@@ -68,7 +52,7 @@
firefox
];
stateVersion = "23.11";
stateVersion = variable.stateVersion;
};
programs.home-manager.enable = true;
}

View File

@@ -1 +0,0 @@
{ imports = [ ./cava/default.nix ]; }

View File

@@ -1,7 +1,6 @@
{ pkgs, config, ... }:
let
homedir = config.home.homeDirectory;
increments = "5";
brightness-change = pkgs.writeShellScriptBin "brightness-change" ''

View File

@@ -9,6 +9,6 @@
./night-shift.nix
./screenshot.nix
./startup.nix
./nerdfont_fzf.nix
./nerdfont_fzf
];
}

View File

@@ -29,7 +29,7 @@ in {
home.packages = with pkgs; [ nerdfont-fzf nerdfont-fzf-fetch nerdfont-popup ];
xdg.configFile."nerdfont_glyphnames.json" = {
source = ../misc/nerdfont_glyphnames.json;
source = ./nerdfont_glyphnames.json;
};
}

View File

@@ -2,6 +2,7 @@
{ pkgs, config, ... }:
let
homedir = config.home.homeDirectory;
variable = import ../../variables.nix;
battery-notif = pkgs.writeShellScriptBin "battery-notif" ''
# Send notifications when low on battery and not in charge
@@ -44,9 +45,12 @@ let
startup = pkgs.writeShellScriptBin "startup" ''
# Because HM enabling services suck.
systemctl --user start sops-nix
[[ ${
toString variable.enableSops
} == "true" ]] && systemctl --user start sops-nix
[[ ${toString variable.enableNextcloud} == "true" ]] && nextcloud-watch &
nextcloud-watch &
battery-notif &
${pkgs.waybar}/bin/waybar &
'';

4
home/system/default.nix Normal file
View File

@@ -0,0 +1,4 @@
{
imports =
[ ./git ./dunst ./hyprland ./shell ./sops ./waybar ./wlogout ./sops ];
}

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: {
{ config, pkgs, ... }: {
home.packages = with pkgs; [ libnotify ];

View File

@@ -0,0 +1,12 @@
let variable = import ../../../variables.nix;
in {
programs.git = {
enable = true;
userName = variable.git.username;
userEmail = variable.git.email;
extraConfig = {
init.defaultBranch = "main";
push.autoSetupRemote = true;
};
};
}

View File

@@ -1,4 +1,6 @@
{ self, pkgs, config, hyprland, ... }: {
{ self, pkgs, config, hyprland, ... }:
let variable = import ../../../variables.nix;
in {
imports = [ ./hyprlock.nix ./hypridle.nix ./hyprpaper.nix ./hyprcursor.nix ];
@@ -142,7 +144,7 @@
};
input = {
kb_layout = "fr"; # CHANGEME
kb_layout = variable.keyboardLayout;
kb_options = "caps:escape";
follow_mouse = 1;

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }: {
{ pkgs, ... }: {
home.packages = with pkgs; [ hyprcursor ];
# home.file.".local/share/icons/rose-pine-hyprcursor" = {

View File

@@ -42,6 +42,8 @@
sl = "ls";
open = "${pkgs.xdg_utils}/bin/xdg-open";
icat = "${pkgs.kitty}/bin/kitty +kitten icat";
note = "vim ~/Nextcloud/obsidian";
obs = "vim ~/Nextcloud/obsidian";
};
};
}

View File

@@ -1,9 +1,9 @@
{ sops-nix, config, ... }: {
{ sops-nix, ... }: {
imports = [ sops-nix.homeManagerModules.sops ];
sops = {
age.keyFile = "/home/hadi/.config/sops/age/keys.txt";
defaultSopsFile = ../../secrets/secrets.yaml;
defaultSopsFile = ../../../secrets/secrets.yaml;
secrets = {
sshconfig = { path = "/home/hadi/.ssh/config"; };
oxk = { path = "/home/hadi/.ssh/oxserver"; };

View File

@@ -1,4 +1,4 @@
{ pkgs, config, lib, ... }: {
{ config, ... }: {
services = {
blueman-applet.enable = true;
network-manager-applet.enable = true;
@@ -31,6 +31,7 @@
"hyprland/window" = {
"format" = "{title:30}";
"max-length" = 30;
"separate-outputs" = true;
};
"hyprland/workspaces" = {

View File

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@@ -1,8 +1,5 @@
{ lib, ... }:
with lib;
{
with lib; {
options.theme = {
waybar-transparent = mkOption {

View File

@@ -1,5 +1,5 @@
{ config, ... }: {
imports = [ ./nixy.nix ];
imports = [ ./nixy.nix ./wallpapers ];
config.theme.colors.primary-ansi-16-number =
if config.theme.colors.primary-ansi-16 == "black" then
0

View File

@@ -1,4 +1,4 @@
{ config, ... }: {
{
xdg.configFile."wallpapers" = {
recursive = true;
source = ./wallpapers;

View File

Before

Width:  |  Height:  |  Size: 826 KiB

After

Width:  |  Height:  |  Size: 826 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

View File

Before

Width:  |  Height:  |  Size: 12 MiB

After

Width:  |  Height:  |  Size: 12 MiB

View File

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 95 KiB

View File

Before

Width:  |  Height:  |  Size: 378 KiB

After

Width:  |  Height:  |  Size: 378 KiB

View File

Before

Width:  |  Height:  |  Size: 288 KiB

After

Width:  |  Height:  |  Size: 288 KiB

View File

Before

Width:  |  Height:  |  Size: 641 KiB

After

Width:  |  Height:  |  Size: 641 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.0 MiB

View File

Before

Width:  |  Height:  |  Size: 8.6 MiB

After

Width:  |  Height:  |  Size: 8.6 MiB