Compare commits
6 Commits
3945bc3204
...
27f2604ed4
| Author | SHA1 | Date | |
|---|---|---|---|
| 27f2604ed4 | |||
| c51feeac8a | |||
| 27154a2ad8 | |||
| fc05eb7824 | |||
| dab57c7754 | |||
| 2907927036 |
@@ -13,6 +13,7 @@
|
|||||||
./nix.nix
|
./nix.nix
|
||||||
./sops.nix
|
./sops.nix
|
||||||
./root.nix
|
./root.nix
|
||||||
|
./stylix.nix
|
||||||
]
|
]
|
||||||
++ [
|
++ [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{outputs, ...}: {
|
{outputs, ...}: {
|
||||||
# Apply overlays
|
# Apply overlays
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
# TODO: apply this to hm and nixos without duplicate code
|
|
||||||
overlays = builtins.attrValues outputs.overlays;
|
overlays = builtins.attrValues outputs.overlays;
|
||||||
config = {
|
config = {
|
||||||
nvidia.acceptLicense = true;
|
nvidia.acceptLicense = true;
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [inputs.stylix.nixosModules.stylix];
|
||||||
|
|
||||||
|
stylix.enable = true;
|
||||||
|
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
||||||
|
|
||||||
|
stylix.fonts = {
|
||||||
|
serif = {
|
||||||
|
package = pkgs.dejavu_fonts;
|
||||||
|
name = "DejaVu Serif";
|
||||||
|
};
|
||||||
|
|
||||||
|
sansSerif = {
|
||||||
|
package = pkgs.dejavu_fonts;
|
||||||
|
name = "DejaVu Sans";
|
||||||
|
};
|
||||||
|
|
||||||
|
monospace = {
|
||||||
|
package = pkgs.dejavu_fonts;
|
||||||
|
name = "DejaVu Sans Mono";
|
||||||
|
};
|
||||||
|
|
||||||
|
emoji = {
|
||||||
|
package = pkgs.noto-fonts-color-emoji;
|
||||||
|
name = "Noto Color Emoji";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -7,28 +7,10 @@
|
|||||||
|
|
||||||
programs.regreet = {
|
programs.regreet = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# iconTheme = julianCfg.gtk.iconTheme;
|
|
||||||
# theme = julianCfg.gtk.theme;
|
|
||||||
# # font = julianCfg.fontProfiles.regular; # TODO: do
|
|
||||||
# cursorTheme = {
|
|
||||||
# inherit (julianCfg.gtk.cursorTheme) name package;
|
|
||||||
# };
|
|
||||||
cageArgs = [
|
cageArgs = [
|
||||||
"-s"
|
"-s"
|
||||||
"-m"
|
"-m"
|
||||||
"last"
|
"last"
|
||||||
]; # multimonitor use last monitor
|
]; # multimonitor use last monitor
|
||||||
# settings.background = {
|
|
||||||
# path = julianCfg.wallpaper;
|
|
||||||
# fit = "Cover";
|
|
||||||
# }; # TODO: fix
|
|
||||||
|
|
||||||
# TODO: setting keyboard language does not work
|
|
||||||
# settings = {
|
|
||||||
# env = {
|
|
||||||
# XKB_DEFAULT_LAYOUT = "de";
|
|
||||||
# # XKB_DEFAULT_VARIANT = "altgr-intl";
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+7
-6
@@ -642,11 +642,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1780281641,
|
"lastModified": 1779766384,
|
||||||
"narHash": "sha256-M/+hUKoKbHXpV0xGVfELbN1Ds1aoe3pL5p5/t46YhVo=",
|
"narHash": "sha256-P7Ohnlq8b8b2fU+Sgkrej7LBTM60LBTkHleLuYzmLmU=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "30f9ae2f04174de63ba8bcf3580ca90843b28a01",
|
"rev": "57800b7ab648725ccd33551d01484ee14952ad3f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -739,15 +739,16 @@
|
|||||||
"tinted-zed": "tinted-zed"
|
"tinted-zed": "tinted-zed"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1780418031,
|
"lastModified": 1780418496,
|
||||||
"narHash": "sha256-/lkloe/Vlpq8GmKiHzxA3woYUubWX1mV/RDtv8TE4d0=",
|
"narHash": "sha256-m34WEd1dxo17CQUz702xJrMsnTewsaYyeKKi5Y86HJw=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "stylix",
|
"repo": "stylix",
|
||||||
"rev": "b670c2bdf09861b3215f30fc8a70f2fe26dc5f16",
|
"rev": "45b51150627b28b1d4a4ab4e5d645af8cb7c2ef6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
|
"ref": "release-26.05",
|
||||||
"repo": "stylix",
|
"repo": "stylix",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
deploy-rs.url = "github:serokell/deploy-rs";
|
deploy-rs.url = "github:serokell/deploy-rs";
|
||||||
|
|
||||||
stylix = {
|
stylix = {
|
||||||
url = "github:nix-community/stylix";
|
url = "github:nix-community/stylix/release-26.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
settings = {
|
settings = {
|
||||||
theme = "catppuccin-mocha";
|
# theme = "catppuccin-mocha";
|
||||||
font-size = 12;
|
font-size = 12;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -114,7 +114,7 @@
|
|||||||
# }
|
# }
|
||||||
# );
|
# );
|
||||||
|
|
||||||
configType = "lua";
|
configType = "hyprlang";
|
||||||
|
|
||||||
systemd = {
|
systemd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -182,12 +182,11 @@
|
|||||||
|
|
||||||
# Disable animations for selection, fixes screenshots
|
# Disable animations for selection, fixes screenshots
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
# layerrule {
|
layerrule {
|
||||||
# name = no_anim_for_selection
|
name = no_anim_for_selection
|
||||||
# no_anim = on
|
no_anim = on
|
||||||
# match:namespace = selection
|
match:namespace = selection
|
||||||
# }
|
}
|
||||||
layerrule = noanim, selection
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
@@ -222,7 +221,7 @@
|
|||||||
|
|
||||||
# Dwindle layout
|
# Dwindle layout
|
||||||
dwindle = {
|
dwindle = {
|
||||||
pseudotile = true; # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
# pseudotile = true; # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||||
preserve_split = true; # You probably want this
|
preserve_split = true; # You probably want this
|
||||||
smart_split = false;
|
smart_split = false;
|
||||||
smart_resizing = false;
|
smart_resizing = false;
|
||||||
@@ -260,7 +259,7 @@
|
|||||||
|
|
||||||
force_default_wallpaper = 0;
|
force_default_wallpaper = 0;
|
||||||
|
|
||||||
vfr = true; # power saving
|
# vfr = true; # power saving
|
||||||
};
|
};
|
||||||
|
|
||||||
cursor = {
|
cursor = {
|
||||||
@@ -280,18 +279,18 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Window rules
|
# Window rules
|
||||||
windowrulev2 = [
|
# windowrulev2 = [
|
||||||
"suppressevent maximize, class:.*"
|
# "suppressevent maximize, class:.*"
|
||||||
"workspace 1, class:firefox"
|
# "workspace 1, class:firefox"
|
||||||
"workspace 8, class:Zotero"
|
# "workspace 8, class:Zotero"
|
||||||
"workspace 9, class:nheko"
|
# "workspace 9, class:nheko"
|
||||||
"workspace 9, class:Element"
|
# "workspace 9, class:Element"
|
||||||
"workspace 9, class:discord"
|
# "workspace 9, class:discord"
|
||||||
"workspace 9, class:org.telegram.desktop"
|
# "workspace 9, class:org.telegram.desktop"
|
||||||
"workspace 10, class:thunderbird"
|
# "workspace 10, class:thunderbird"
|
||||||
"float, class:qalculate-gtk"
|
# "float, class:qalculate-gtk"
|
||||||
"tile, class:MATLAB, title:MATLAB"
|
# "tile, class:MATLAB, title:MATLAB"
|
||||||
];
|
# ];
|
||||||
|
|
||||||
# Workspace rules
|
# Workspace rules
|
||||||
workspace =
|
workspace =
|
||||||
@@ -327,7 +326,7 @@
|
|||||||
"$mod, F, fullscreen,"
|
"$mod, F, fullscreen,"
|
||||||
"$mod, X, killactive,"
|
"$mod, X, killactive,"
|
||||||
|
|
||||||
"$mod, -, togglesplit," # dwindle
|
# "$mod, -, togglesplit," # dwindle
|
||||||
|
|
||||||
# opening applications
|
# opening applications
|
||||||
"$mod, D, exec, wofi --show drun,run"
|
"$mod, D, exec, wofi --show drun,run"
|
||||||
|
|||||||
@@ -1,29 +1,31 @@
|
|||||||
{config, ...}: let
|
{config, ...}: let
|
||||||
palette = config.lib.stylix.colors;
|
palette = config.lib.stylix.colors;
|
||||||
in {
|
in {
|
||||||
|
stylix.targets.waybar.enable = false;
|
||||||
|
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# systemd.enable = true;
|
# systemd.enable = true;
|
||||||
settings.mainBar = builtins.fromJSON (builtins.readFile ./config.json);
|
settings.mainBar = builtins.fromJSON (builtins.readFile ./config.json);
|
||||||
};
|
};
|
||||||
|
|
||||||
# xdg.configFile."waybar/style.css".source = ./style.css;
|
xdg.configFile."waybar/style.css".source = ./style.css;
|
||||||
# xdg.configFile."waybar/theme.css".text = ''
|
xdg.configFile."waybar/theme.css".text = ''
|
||||||
# /*
|
/*
|
||||||
# bg - background
|
bg - background
|
||||||
# fg - foreground
|
fg - foreground
|
||||||
# */
|
*/
|
||||||
|
|
||||||
# /* Main Colors */
|
/* Main Colors */
|
||||||
# @define-color background #${palette.base00};
|
@define-color background #${palette.base00};
|
||||||
# @define-color foreground #${palette.base05};
|
@define-color foreground #${palette.base05};
|
||||||
|
|
||||||
# /* Workspace Button Colors */
|
/* Workspace Button Colors */
|
||||||
# @define-color hover-bg #${palette.base01};
|
@define-color hover-bg #${palette.base01};
|
||||||
# @define-color hover-fg #${palette.base05};
|
@define-color hover-fg #${palette.base05};
|
||||||
# @define-color active-bg #${palette.base02};
|
@define-color active-bg #${palette.base02};
|
||||||
# @define-color active-fg #${palette.base0A};
|
@define-color active-fg #${palette.base0A};
|
||||||
# @define-color urgent-bg #${palette.base08};
|
@define-color urgent-bg #${palette.base08};
|
||||||
# @define-color urgent-fg #${palette.base00};
|
@define-color urgent-fg #${palette.base00};
|
||||||
# '';
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
imports = [./stylix.nix];
|
# imports = [./stylix.nix];
|
||||||
|
|
||||||
services.blueman-applet.enable = true;
|
services.blueman-applet.enable = true;
|
||||||
services.nextcloud-client.enable = true;
|
services.nextcloud-client.enable = true;
|
||||||
@@ -9,6 +9,8 @@
|
|||||||
services.syncthing.tray.enable = true;
|
services.syncthing.tray.enable = true;
|
||||||
services.syncthing.tray.command = "syncthingtray --wait"; # Wait for tray to become available
|
services.syncthing.tray.command = "syncthingtray --wait"; # Wait for tray to become available
|
||||||
|
|
||||||
|
gtk.gtk4.theme = null; # Fix evaluation warning since using old home manager version
|
||||||
|
|
||||||
programs.chromium = {
|
programs.chromium = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extensions = [
|
extensions = [
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [inputs.stylix.homeModules.stylix];
|
|
||||||
|
|
||||||
stylix.enable = true;
|
|
||||||
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
|
||||||
}
|
|
||||||
@@ -57,14 +57,4 @@
|
|||||||
|
|
||||||
sessionPath = ["$HOME/.local/bin"];
|
sessionPath = ["$HOME/.local/bin"];
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: colorscheme
|
|
||||||
# colorscheme.mode = lib.mkOverride 1499 "dark";
|
|
||||||
# specialisation = {
|
|
||||||
# dark.configuration.colorscheme.mode = lib.mkOverride 1498 "dark";
|
|
||||||
# light.configuration.colorscheme.mode = lib.mkOverride 1498 "light";
|
|
||||||
# };
|
|
||||||
# home.file = {
|
|
||||||
# ".colorscheme.json".text = builtins.toJSON config.colorscheme;
|
|
||||||
# };
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user