remove stylix, add hyprland, some misc changes as well

This commit is contained in:
Pyrox 2023-03-02 08:59:11 -05:00
parent 312f37adc0
commit 37d8d13a10
Signed by: thehedgehog
GPG key ID: 8CDF3F7CAA53A0F5
20 changed files with 287 additions and 404 deletions

View file

@ -42,27 +42,6 @@
"type": "github" "type": "github"
} }
}, },
"base16": {
"inputs": {
"nixpkgs": [
"stylix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1658847131,
"narHash": "sha256-X6Mml7cT0YR3WCD5fkUhpRVV5ZPcwdcDsND8r8xMqTE=",
"owner": "SenchoPens",
"repo": "base16.nix",
"rev": "6b404cda2e04ca3cf5ca7b877af9c469e1386acb",
"type": "github"
},
"original": {
"owner": "SenchoPens",
"repo": "base16.nix",
"type": "github"
}
},
"blobs": { "blobs": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -100,28 +79,6 @@
"type": "github" "type": "github"
} }
}, },
"coricamu": {
"inputs": {
"nixpkgs": [
"stylix",
"nixpkgs"
],
"utils": "utils_3"
},
"locked": {
"lastModified": 1659649195,
"narHash": "sha256-wRpMO4Mm4uizR5M71iipdi8ssSYMEPPAIwWyFYnhnco=",
"owner": "danth",
"repo": "coricamu",
"rev": "cdd2f7326efd91509caf84e69b669a7f9e6782bc",
"type": "github"
},
"original": {
"owner": "danth",
"repo": "coricamu",
"type": "github"
}
},
"crane": { "crane": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_2", "flake-compat": "flake-compat_2",
@ -358,22 +315,6 @@
"type": "github" "type": "github"
} }
}, },
"flake-compat_9": {
"flake": false,
"locked": {
"lastModified": 1673956053,
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": { "flake-parts": {
"inputs": { "inputs": {
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
@ -637,28 +578,6 @@
"type": "github" "type": "github"
} }
}, },
"home-manager_2": {
"inputs": {
"nixpkgs": [
"stylix",
"nixpkgs"
],
"utils": "utils_4"
},
"locked": {
"lastModified": 1658924727,
"narHash": "sha256-Fhh9FK9CvuCLxG1WkWJPoendDeXKI4gHYTfezo1n2Zg=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "0e2f7876d2f2ae98a67d89a8bef8c49332aae5af",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"lanzaboote": { "lanzaboote": {
"inputs": { "inputs": {
"crane": "crane", "crane": "crane",
@ -795,7 +714,7 @@
"nix-eval-jobs": { "nix-eval-jobs": {
"inputs": { "inputs": {
"flake-parts": "flake-parts_2", "flake-parts": "flake-parts_2",
"nixpkgs": "nixpkgs_12" "nixpkgs": "nixpkgs_11"
}, },
"locked": { "locked": {
"lastModified": 1675041725, "lastModified": 1675041725,
@ -959,21 +878,6 @@
} }
}, },
"nixpkgs_10": { "nixpkgs_10": {
"locked": {
"lastModified": 1673315479,
"narHash": "sha256-GNCFRtDHjTygXGJp/H+f2XQPMGxpYSmNiibIqYzihtM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c07552f6f7d4eead7806645ec03f7f1eb71ba6bd",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
}
},
"nixpkgs_11": {
"locked": { "locked": {
"lastModified": 1675763311, "lastModified": 1675763311,
"narHash": "sha256-bz0Q2H3mxsF1CUfk26Sl9Uzi8/HFjGFD/moZHz1HebU=", "narHash": "sha256-bz0Q2H3mxsF1CUfk26Sl9Uzi8/HFjGFD/moZHz1HebU=",
@ -989,7 +893,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_12": { "nixpkgs_11": {
"locked": { "locked": {
"lastModified": 1675040521, "lastModified": 1675040521,
"narHash": "sha256-+YhT+lQT95qHcj5SNXdRFqIV/SvAezT90T8GzqQ94lE=", "narHash": "sha256-+YhT+lQT95qHcj5SNXdRFqIV/SvAezT90T8GzqQ94lE=",
@ -1005,7 +909,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_13": { "nixpkgs_12": {
"locked": { "locked": {
"lastModified": 1675115703, "lastModified": 1675115703,
"narHash": "sha256-4zetAPSyY0D77x+Ww9QBe8RHn1akvIvHJ/kgg8kGDbk=", "narHash": "sha256-4zetAPSyY0D77x+Ww9QBe8RHn1akvIvHJ/kgg8kGDbk=",
@ -1131,18 +1035,17 @@
}, },
"nixpkgs_9": { "nixpkgs_9": {
"locked": { "locked": {
"lastModified": 1659102345, "lastModified": 1673315479,
"narHash": "sha256-Vbzlz254EMZvn28BhpN8JOi5EuKqnHZ3ujFYgFcSGvk=", "narHash": "sha256-GNCFRtDHjTygXGJp/H+f2XQPMGxpYSmNiibIqYzihtM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "11b60e4f80d87794a2a4a8a256391b37c59a1ea7", "rev": "c07552f6f7d4eead7806645ec03f7f1eb71ba6bd",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "id": "nixpkgs",
"ref": "nixpkgs-unstable", "ref": "nixos-unstable",
"repo": "nixpkgs", "type": "indirect"
"type": "github"
} }
}, },
"nur": { "nur": {
@ -1205,7 +1108,6 @@
"nixpkgs": "nixpkgs_7", "nixpkgs": "nixpkgs_7",
"nixpkgs-update": "nixpkgs-update", "nixpkgs-update": "nixpkgs-update",
"nur": "nur", "nur": "nur",
"stylix": "stylix",
"tclip": "tclip", "tclip": "tclip",
"vscode-extensions": "vscode-extensions", "vscode-extensions": "vscode-extensions",
"wayland": "wayland" "wayland": "wayland"
@ -1269,33 +1171,11 @@
"type": "github" "type": "github"
} }
}, },
"stylix": {
"inputs": {
"base16": "base16",
"coricamu": "coricamu",
"flake-compat": "flake-compat_7",
"home-manager": "home-manager_2",
"nixpkgs": "nixpkgs_9"
},
"locked": {
"lastModified": 1677597194,
"narHash": "sha256-dYDZv4k8ztRogjJkwibaCvUIyq97exwzHwqvo/DH6ZU=",
"owner": "danth",
"repo": "stylix",
"rev": "f93518ec4857358619ab3cb2e7fc97b15f98a7e3",
"type": "github"
},
"original": {
"owner": "danth",
"repo": "stylix",
"type": "github"
}
},
"tclip": { "tclip": {
"inputs": { "inputs": {
"gomod2nix": "gomod2nix", "gomod2nix": "gomod2nix",
"nixpkgs": "nixpkgs_10", "nixpkgs": "nixpkgs_9",
"utils": "utils_5" "utils": "utils_3"
}, },
"locked": { "locked": {
"lastModified": 1677254499, "lastModified": 1677254499,
@ -1342,36 +1222,6 @@
} }
}, },
"utils_3": { "utils_3": {
"locked": {
"lastModified": 1642700792,
"narHash": "sha256-XqHrk7hFb+zBvRg6Ghl+AZDq03ov6OshJLiSWOoX5es=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "846b2ae0fc4cc943637d3d1def4454213e203cba",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"utils_4": {
"locked": {
"lastModified": 1653893745,
"narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"utils_5": {
"locked": { "locked": {
"lastModified": 1667395993, "lastModified": 1667395993,
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
@ -1388,9 +1238,9 @@
}, },
"vscode-extensions": { "vscode-extensions": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_8", "flake-compat": "flake-compat_7",
"flake-utils": "flake-utils_7", "flake-utils": "flake-utils_7",
"nixpkgs": "nixpkgs_11" "nixpkgs": "nixpkgs_10"
}, },
"locked": { "locked": {
"lastModified": 1677634074, "lastModified": 1677634074,
@ -1408,10 +1258,10 @@
}, },
"wayland": { "wayland": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_9", "flake-compat": "flake-compat_8",
"lib-aggregate": "lib-aggregate", "lib-aggregate": "lib-aggregate",
"nix-eval-jobs": "nix-eval-jobs", "nix-eval-jobs": "nix-eval-jobs",
"nixpkgs": "nixpkgs_13" "nixpkgs": "nixpkgs_12"
}, },
"locked": { "locked": {
"lastModified": 1675160077, "lastModified": 1675160077,

View file

@ -8,7 +8,7 @@
max-jobs = 8; max-jobs = 8;
netrc-file = "/home/thehedgehog/.netrc"; netrc-file = "/home/thehedgehog/.netrc";
}; };
description = "The Hedgehog's Nix config with flakes"; description = "Pyrox's flaky configurations";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixos-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; nixos-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
@ -24,13 +24,13 @@
golink.url = "github:tailscale/golink"; golink.url = "github:tailscale/golink";
home-manager.url = "github:nix-community/home-manager"; home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
hyprland.url = "github:hyprwm/Hyprland";
lanzaboote.url = "github:nix-community/lanzaboote"; lanzaboote.url = "github:nix-community/lanzaboote";
mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/master"; mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/master";
neovim.url = "github:nix-community/neovim-nightly-overlay"; neovim.url = "github:nix-community/neovim-nightly-overlay";
neovim.inputs.nixpkgs.url = "github:nixos/nixpkgs?rev=fad51abd42ca17a60fc1d4cb9382e2d79ae31836"; neovim.inputs.nixpkgs.url = "github:nixos/nixpkgs?rev=fad51abd42ca17a60fc1d4cb9382e2d79ae31836";
nixpkgs-update.url = "github:ryantm/nixpkgs-update"; nixpkgs-update.url = "github:ryantm/nixpkgs-update";
nur.url = "github:nix-community/nur"; nur.url = "github:nix-community/nur";
stylix.url = "github:danth/stylix";
tclip.url = "github:theHedgehog0/tclip"; tclip.url = "github:theHedgehog0/tclip";
vscode-extensions.url = "github:nix-community/nix-vscode-extensions"; vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
wayland.url = "github:nix-community/nixpkgs-wayland"; wayland.url = "github:nix-community/nixpkgs-wayland";
@ -48,12 +48,12 @@
emacs, emacs,
golink, golink,
home-manager, home-manager,
hyprland,
lanzaboote, lanzaboote,
mailserver, mailserver,
neovim, neovim,
nixpkgs-update, nixpkgs-update,
nur, nur,
stylix,
tclip, tclip,
vscode-extensions, vscode-extensions,
wayland, wayland,
@ -95,10 +95,7 @@
username ? "pyrox", username ? "pyrox",
profile ? "desktop", profile ? "desktop",
}: { }: {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.${username} = import ./home/profiles/${profile}.nix; home-manager.users.${username} = import ./home/profiles/${profile}.nix;
home-manager.extraSpecialArgs = {inherit pkgs system inputs;};
users.users.${username}.isNormalUser = true; users.users.${username}.isNormalUser = true;
}; };
@ -109,12 +106,19 @@
hmProfile ? "desktop", hmProfile ? "desktop",
coreCount, coreCount,
extraModules ? [], extraModules ? [],
extraHMModules ? [],
}: lib.nixosSystem { }: lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [
./hosts/${hostname}/configuration.nix ./hosts/${hostname}/configuration.nix
./hosts/${hostname}/bootloader.nix ./hosts/${hostname}/bootloader.nix
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {inherit pkgs system inputs;};
home-manager.sharedModules = [] ++ extraHMModules;
}
( mkUser { inherit profile; username = "pyrox";}) ( mkUser { inherit profile; username = "pyrox";})
( mkUser { inherit profile; username = "thehedgehog";}) ( mkUser { inherit profile; username = "thehedgehog";})
] ++ extraModules; ] ++ extraModules;
@ -158,7 +162,10 @@
profile = "desktop"; profile = "desktop";
coreCount = 8; coreCount = 8;
extraModules = [ extraModules = [
# inputs.stylix.nixosModules.stylix hyprland.nixosModules.default
];
extraHMModules = [
hyprland.homeManagerModules.default
]; ];
}; };
}; };

View file

@ -1,10 +1,21 @@
{pkgs, ...}: { {pkgs, config, ...}: {
gtk = { gtk = {
enable = true; enable = true;
cursorTheme = { cursorTheme = {
package = pkgs.phinger-cursors; package = pkgs.phinger-cursors;
name = "phinger-cursors"; name = "phinger-cursors";
}; };
font = {
name = "IBM Plex Mono";
size = 14;
};
gtk3.bookmarks = [
"file:///${config.home.homeDirectory}/Downloads"
];
theme = {
name = "Catppuccin-Mocha";
package = pkgs.catppuccin-gtk;
};
iconTheme = { iconTheme = {
package = pkgs.papirus-icon-theme; package = pkgs.papirus-icon-theme;
name = "Papirus-Dark"; name = "Papirus-Dark";

View file

@ -1,13 +1,8 @@
{ inputs, ... }: { { inputs, ... }: {
imports = [ imports = [
../programs/gpg.nix ../programs/gpg.nix
# inputs.stylix.nixosModules.stylix
../theme.nix
]; ];
programs.home-manager.enable = true; programs.home-manager.enable = true;
# home.sessionVariables = {
# GNUPGHOME = "~/.gnupg";
# };
home.stateVersion = "23.05"; home.stateVersion = "23.05";
home.language = {base = "en_US.utf8";}; home.language = {base = "en_US.utf8";};
} }

View file

@ -35,9 +35,13 @@
zotero zotero
]; ];
xdg.configFile = { xdg.configFile = {
"waybar" = { "waybar/style.css" = {
source = ../../oldconfig/waybar; source = ../../oldconfig/waybar/style.css;
recursive = true; recursive = false;
};
"waybar/mocha.css" = {
source = ../../oldconfig/waybar/mocha.css;
recursive = false;
}; };
"wlogout" = { "wlogout" = {
source = ../../oldconfig/wlogout; source = ../../oldconfig/wlogout;

View file

@ -17,7 +17,6 @@
../programs/obs.nix ../programs/obs.nix
# ../programs/rofi.nix # ../programs/rofi.nix
../programs/vscodium.nix ../programs/vscodium.nix
../programs/waybar.nix
../programs/wezterm ../programs/wezterm
../services/gpg-agent.nix ../services/gpg-agent.nix

View file

@ -2,6 +2,7 @@
programs.helix = { programs.helix = {
enable = true; enable = true;
settings = { settings = {
theme = "catppuccin_mocha";
editor = { editor = {
line-number = "absolute"; line-number = "absolute";
mouse = false; mouse = false;

View file

@ -4,49 +4,49 @@
}: { }: {
programs.kitty = { programs.kitty = {
enable = true; enable = true;
# font.name = "IBM Plex Mono Regular"; font.name = "IBM Plex Mono Regular";
font.size = 12; font.size = 12;
# extraConfig = '' extraConfig = ''
# foreground #CDD6F4 foreground #CDD6F4
# background #1E1E2E background #1E1E2E
# selection_foreground #1E1E2E selection_foreground #1E1E2E
# selection_background #F5E0DC selection_background #F5E0DC
# cursor #F5E0DC cursor #F5E0DC
# cursor_text_color #1E1E2E cursor_text_color #1E1E2E
# url_color #F5E0DC url_color #F5E0DC
# active_border_color #B4BEFE active_border_color #B4BEFE
# inactive_border_color #6C7086 inactive_border_color #6C7086
# bell_border_color #F9E2AF bell_border_color #F9E2AF
# wayland_titlebar_color system wayland_titlebar_color system
# macos_titlebar_color system macos_titlebar_color system
# active_tab_foreground #11111B active_tab_foreground #11111B
# active_tab_background #CBA6F7 active_tab_background #CBA6F7
# inactive_tab_foreground #CDD6F4 inactive_tab_foreground #CDD6F4
# inactive_tab_background #181825 inactive_tab_background #181825
# tab_bar_background #11111B tab_bar_background #11111B
# mark1_foreground #1E1E2E mark1_foreground #1E1E2E
# mark1_background #B4BEFE mark1_background #B4BEFE
# mark2_foreground #1E1E2E mark2_foreground #1E1E2E
# mark2_background #CBA6F7 mark2_background #CBA6F7
# mark3_foreground #1E1E2E mark3_foreground #1E1E2E
# mark3_background #74C7EC mark3_background #74C7EC
# color0 #45475A color0 #45475A
# color8 #585B70 color8 #585B70
# color1 #F38BA8 color1 #F38BA8
# color9 #F38BA8 color9 #F38BA8
# color2 #A6E3A1 color2 #A6E3A1
# color10 #A6E3A1 color10 #A6E3A1
# color3 #F9E2AF color3 #F9E2AF
# color11 #F9E2AF color11 #F9E2AF
# color4 #89B4FA color4 #89B4FA
# color12 #89B4FA color12 #89B4FA
# color5 #F5C2E7 color5 #F5C2E7
# color13 #F5C2E7 color13 #F5C2E7
# color6 #94E2D5 color6 #94E2D5
# color14 #94E2D5 color14 #94E2D5
# color7 #BAC2DE color7 #BAC2DE
# color15 #A6ADC8 color15 #A6ADC8
# ''; '';
settings = { settings = {
# Font settings # Font settings
bold_font = "IBM Plex Mono:style=Bold"; bold_font = "IBM Plex Mono:style=Bold";

View file

@ -2,12 +2,12 @@
programs.mako = { programs.mako = {
enable = true; enable = true;
actions = true; actions = true;
# backgroundColor = "#1e1e2eff"; backgroundColor = "#1e1e2eff";
# borderColor = "#cba6f7ff"; borderColor = "#cba6f7ff";
defaultTimeout = 10000; defaultTimeout = 10000;
# font = "IBM Plex Sans 14pt"; font = "IBM Plex Sans 14pt";
icons = true; icons = true;
layer = "overlay"; layer = "overlay";
# textColor = "#cdd6f4ff"; textColor = "#cdd6f4ff";
}; };
} }

View file

@ -42,6 +42,7 @@ in {
"terminal.external.linuxExec" = "kitty"; "terminal.external.linuxExec" = "kitty";
"update.mode" = "none"; "update.mode" = "none";
"update.showReleaseNotes" = false; "update.showReleaseNotes" = false;
"workbench.colorTheme" = "Catppuccin Mocha";
"workbench.iconTheme" = "vscode-icons"; "workbench.iconTheme" = "vscode-icons";
"vscode-neovim.neovimExecutablePaths.linux" = "${pkgs.neovim}/bin/nvim"; "vscode-neovim.neovimExecutablePaths.linux" = "${pkgs.neovim}/bin/nvim";
"python.formatting.provider" = "black"; "python.formatting.provider" = "black";

View file

@ -1,65 +0,0 @@
{
programs.waybar = {
enable = true;
systemd.enable = true;
# style = "/home/thehedgehog/.config/waybar/style.css"
# settings = {
# mainBar = {
# layer = "top";
# position = "top";
# height = 32;
# modules-left = ["sway/workspaces" "sway/mode"];
# modules-center = ["custom/media"];
# modules-right = [
# "idle_inhibitor"
# "pulseaudio"
# "network"
# "cpu"
# "memory"
# "temperature"
# "backlight"
# "battery"
# "clock"
# "tray"
# ];
# "sway/workspaces" = {
# disable-scroll = true;
# enable-bar-scroll = false;
# active-only = false;
# all-outputs = false;
# format = "{icon}";
# format-icons = {
# "1" = "";
# "2" = "";
# "3" = "ﭮ";
# "4" = "ﱘ";
# "5" = "";
# };
# };
# "idle_inhibitor" = {
# format = "{icon}";
# format-icons = {
# "activated" = "";
# "deactivated" = "";
# };
# };
# "tray" = {
# icon-size = 25;
# spacing = 12;
# };
# "clock" = {
# tooltip-format = "<big>{%R:%S}</big>\n<tt><small>{calendar}</small></tt>";
# format-alt = "{%d %b %Y}";
# };
# "cpu" = {
# format = "{usage}% ";
# interval = 5;
# tooltip = false;
# # states = {
# # ""
# # };
# };
# };
# };
};
}

View file

@ -1,23 +0,0 @@
{
stylix.targets = {
alacritty.enable = false;
bemenu.enable = false;
dunst.enable = false;
feh.enable = false;
fish.enable = true;
gedit.enable = false;
gnome.enable = false;
gtk.enable = true;
helix.enable = true;
kitty.enable = true;
mako.enable = true;
qutebrowser.enable = true;
rofi.enable = false;
sway.enable = true;
swaylock.enable = true;
swaylock.useImage = true;
vim.enable = true;
vscode.enable = true;
xresources.enable = true;
};
}

11
home/wayland/hyprland.nix Normal file
View file

@ -0,0 +1,11 @@
{
programs.hyprland = {
enable = true;
systemdIntegration = true;
disableAutoreload = false;
xwayland.enable = true;
xwayland.hidpi = true;
nvidiaPatches = false;
recommendedEnvironment = true;
};
}

View file

@ -9,6 +9,7 @@ in {
imports = [ imports = [
./keybindings.nix ./keybindings.nix
./swaylock.nix ./swaylock.nix
./waybar.nix
]; ];
wayland.windowManager.sway = { wayland.windowManager.sway = {
enable = true; enable = true;
@ -30,11 +31,11 @@ in {
mouseWarping = true; mouseWarping = true;
newWindow = "smart"; newWindow = "smart";
}; };
# fonts = { fonts = {
# names = ["Input Sans"]; names = ["Input Sans"];
# style = "Regular"; style = "Regular";
# size = 12.0; size = 12.0;
# }; };
gaps = { gaps = {
inner = 4; inner = 4;
outer = 4; outer = 4;
@ -72,9 +73,9 @@ in {
eDP-1 = { eDP-1 = {
scale = "1.2"; scale = "1.2";
}; };
# "*" = { "*" = {
# bg = "${homeDir}/nix/bgs/tokyo-night/nix-snowflake.png fill"; bg = "${homeDir}/nix/bgs/catppuccin-waves.png fill";
# }; };
}; };
startup = [ startup = [
{command = "${pkgs.dex}/bin/dex -a";} {command = "${pkgs.dex}/bin/dex -a";}
@ -96,6 +97,44 @@ in {
} }
]; ];
}; };
colors = {
background = "#1e1e2e";
focused = {
border = "#f5c2e7";
background = "#1e1e2e";
text = "#cdd6f4";
indicator = "#f5e0dc";
childBorder = "#f5c2e7";
};
focusedInactive = {
border = "#cba6f7";
background = "#1e1e2e";
text = "#cdd6f4";
indicator = "#f5e0dc";
childBorder = "#cba6f7";
};
unfocused = {
border = "#cba6f7";
background = "#1e1e2e";
text = "#cdd6f4";
indicator = "#f5e0dc";
childBorder = "#cba6f7";
};
urgent = {
border = "#fab387";
background = "#1e1e2e";
text = "#fab387";
indicator = "#6c7086";
childBorder = "#fab387";
};
placeholder = {
border = "#6c7086";
background = "#1e1e2e";
text = "#cdd6f4";
indicator = "#6c7086";
childBorder = "#6c7086";
};
};
}; };
}; };
} }

123
home/wayland/waybar.nix Normal file
View file

@ -0,0 +1,123 @@
{ pkgs, lib, ... }: {
programs.waybar = {
enable = true;
systemd.enable = true;
# style = "/home/thehedgehog/.config/waybar/style.css"
settings = {
mainBar = {
layer = "top";
position = "top";
height = 32;
modules-left = ["sway/workspaces" "sway/mode"];
modules-center = ["custom/media"];
modules-right = [
"idle_inhibitor"
"pulseaudio"
"network"
"cpu"
"memory"
"temperature"
"backlight"
"battery"
"clock"
"tray"
];
"sway/workspaces" = {
disable-scroll = true;
enable-bar-scroll = false;
active-only = false;
all-outputs = false;
format = "{icon}";
format-icons = {
"1" = "";
"2" = "";
"3" = "";
"4" = "";
"5" = "";
};
};
"idle_inhibitor" = {
format = "{icon}";
format-icons = {
"activated" = "";
"deactivated" = "";
};
};
"tray" = {
icon-size = 25;
spacing = 12;
};
"clock" = {
tooltip-format = "<big>{%R:%S}</big>\n<tt><small>{calendar}</small></tt>";
format-alt = "{%d %b %Y}";
};
"cpu" = {
format = "{usage}% ";
interval = 5;
tooltip = false;
};
"memory" = {
format = "{}% ";
};
"temperature" = {
critical-threshold = 80;
format = "{temperatureC}°C {icon}";
format-icons = ["" "" ""];
};
"backlight" = {
format = "{percent}% {icon}";
format-icons = ["" ""];
};
"battery" = {
states = {
good = 80;
warning = 30;
critical = 15;
};
format = "{capacity}% {icon}";
format-charging = "{capacity}% ";
format-plugged = "{capacity}% ";
format-alt = "{time} {icon}";
format-icons = ["" "" "" "" ""];
};
"network" = {
format-wifi = "{essid}";
format-ethernet = "{ifname}: {ipaddr}/{cidr} ";
format-linked = "{ifname} (No IP) ";
format-disconnected = "Disconnected! ";
format-alt = "{ifname}: {ipaddr}/{cidr}";
on-click = lib.getExe pkgs.networkmanagerapplet;
};
"pulseaudio" = {
format = "{volume}% {icon} {format_source}";
format-bluetooth = "{volume}% {icon} {format_source}";
format-bluetooth-muted = " {icon} {format_source}";
format-muted = " {format_source}";
format-source = "{volume}% ";
format-source-muted = "";
format-icons = {
headphone = "";
hands-free = "";
headset = "";
phone = "";
portable = "";
car = "";
default = ["" "" ""];
};
on-click = lib.getExe pkgs.pavucontrol;
};
"custom/media" = {
format = "{icon}{}";
return-type = "json";
format-icons = {
Playing = " ";
Paused = " ";
};
max-length =70;
exec = "${lib.getExe pkgs.playerctl} -a metadata --format '{\"text\": \"{{playerName}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F";
on-click = "${lib.getExe pkgs.playerctl} play-pause";
};
};
};
};
}

View file

@ -1,7 +1,5 @@
{ {
pkgs, pkgs,
lib,
inputs,
... ...
}: { }: {
imports = [ imports = [

View file

@ -34,39 +34,5 @@
address = "fe80::1"; address = "fe80::1";
interface = "enp1s0"; interface = "enp1s0";
}; };
# wireguard = {
# enable = true;
# interfaces = {
# wg0 = {
# privateKeyFile = "/run/agenix/dn42-privkey";
# listenPort = 480;
# allowedIPsAsRoutes = false;
# peers = [
# {
# publicKey = "wW5iNQcNa9VphZWicMdc8k7lJbVrXPMtzmWsHBwPqE0=";
# persistentKeepalive = 15;
# dynamicEndpointRefreshSeconds = 5;
# allowedIPs = [
# "172.20.43.96/27"
# "172.20.0.0/24"
# "172.21.0.0/24"
# "172.22.0.0/24"
# "172.23.0.0/24"
# "172.20.0.0/14"
# "10.100.0.0/14"
# "10.127.0.0/16"
# "10.0.0.0/8"
# "172.31.0.0/16"
# ];
# }
# ];
# postSetup = ''
# ${pkgs.iproute2}/bin/ip addr add 172.20.43.96/32 peer 172.20.43.97/32 dev wg0
# ${pkgs.iproute2}/bin/ip -6 addr add fe80::1/64 peer fe80::2/64 dev wg0
# # ${pkgs.iproute2}/bin/ip route del default dev wg0
# '';
# };
# };
# };
}; };
} }

View file

@ -20,7 +20,6 @@
./misc.nix ./misc.nix
./packages.nix ./packages.nix
./qt.nix ./qt.nix
./theme.nix
# Security # Security
./security/modules.nix ./security/modules.nix
@ -33,6 +32,7 @@
./programs/default.nix ./programs/default.nix
./programs/dconf.nix ./programs/dconf.nix
./programs/gnupg.nix ./programs/gnupg.nix
./programs/hyprland.nix
./programs/less.nix ./programs/less.nix
./programs/misc.nix ./programs/misc.nix
./programs/neovim.nix ./programs/neovim.nix

View file

@ -0,0 +1,9 @@
{
programs.hyprland = {
enable = true;
xwayland.enable = true;
xwayland.hidpi = true;
nvidiaPatches = false;
recommendedEnvironment = true;
};
}

View file

@ -1,43 +0,0 @@
{ pkgs, config, inputs, ... }: {
imports = [inputs.stylix.nixosModules.stylix];
stylix = {
image = pkgs.fetchurl {
url = "https://github.com/catppuccin/wallpapers/raw/main/misc/waves_right_colored.png";
sha256 = "1nc78cdnwskkrcvfyj0s85a9sjyldv6fmz6iia08a257j7x89ain";
};
homeManagerIntegration.autoImport = true;
homeManagerIntegration.followSystem = true;
autoEnable = true;
base16Scheme = "${pkgs.my-pkgs.catppuccin-theme}/mocha.yaml";
fonts = {
serif = {
package = pkgs.ibm-plex;
name = "IBM Plex Serif";
};
sansSerif = {
package = pkgs.ibm-plex;
name = "IBM Plex Sans";
};
monospace = {
package = pkgs.ibm-plex;
name = "IBM Plex Mono";
};
emoji = {
package = pkgs.joypixels;
name = "JoyPixels";
};
};
targets = {
chromium.enable = false;
console.enable = true;
feh.enable = false;
fish.enable = true;
gnome.enable = false;
grub.enable = false;
gtk.enable = true;
lightdm.enable = false;
plymouth.enable = true;
plymouth.blackBackground = true;
};
};
}