refactor(stylix): merge home-manager module into system
This commit is contained in:
parent
d4ecb78824
commit
a5b3e2a175
14 changed files with 26 additions and 51 deletions
|
@ -1,21 +1,36 @@
|
|||
{ inputs, ... }:
|
||||
let
|
||||
opacity = 0.8;
|
||||
toImport = [
|
||||
../../themes/cursors/banana-cursor.nix
|
||||
../../themes/darkviolet.nix
|
||||
../../themes/fonts/sauce-code-pro.nix
|
||||
./themes/cursors/banana-cursor.nix
|
||||
./themes/colourschemes/darkviolet.nix
|
||||
./themes/fonts/sauce-code-pro.nix
|
||||
{
|
||||
# Put options that exist in both NixOS and home-manager modules here.
|
||||
stylix = {
|
||||
enable = true;
|
||||
image = ../../media/wallpaper.jpg;
|
||||
opacity = {
|
||||
applications = opacity;
|
||||
desktop = opacity;
|
||||
popups = opacity;
|
||||
terminal = opacity;
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
in
|
||||
{
|
||||
imports = [ inputs.stylix.nixosModules.stylix ] ++ toImport;
|
||||
|
||||
# Enable basic fonts for reasonable Unicode coverage
|
||||
fonts.enableDefaultPackages = true;
|
||||
|
||||
stylix = {
|
||||
enable = true;
|
||||
image = ../../media/wallpaper.jpg;
|
||||
homeManagerIntegration.autoImport = false;
|
||||
homeManagerIntegration.followSystem = false;
|
||||
};
|
||||
imports = [ inputs.stylix.nixosModules.stylix ] ++ toImport;
|
||||
home-manager.users.rafiq.imports = [ inputs.stylix.homeManagerModules.stylix ] ++ toImport;
|
||||
|
||||
# Put options that only exist in the NixOS module here.
|
||||
stylix.homeManagerIntegration.autoImport = false;
|
||||
stylix.homeManagerIntegration.followSystem = false;
|
||||
|
||||
# Put options that only exist in the home-manager module here.
|
||||
# home-manager.users.rafiq.stylix = {};
|
||||
}
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.stylix.homeManagerModules.stylix
|
||||
../../themes/darkviolet.nix
|
||||
../../themes/fonts/sauce-code-pro.nix
|
||||
../../themes/cursors/banana-cursor.nix
|
||||
];
|
||||
stylix = {
|
||||
enable = true;
|
||||
image = ../../media/wallpaper.jpg;
|
||||
iconTheme = {
|
||||
enable = true;
|
||||
package = pkgs.numix-icon-theme;
|
||||
dark = "Numix";
|
||||
light = "Numix-Light";
|
||||
};
|
||||
opacity = {
|
||||
applications = 0.8;
|
||||
desktop = 0.8;
|
||||
popups = 0.8;
|
||||
terminal = 0.8;
|
||||
};
|
||||
targets.gtk.extraCss = # css
|
||||
''
|
||||
window {
|
||||
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
|
||||
background-size: 100% 2px; /* Adjust height for scanline thickness */
|
||||
background-color: rgba(0, 0, 0, 0.05); /*Very slight transparency*/
|
||||
}
|
||||
entry {
|
||||
box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
button:hover {
|
||||
box-shadow: 0 0 5px rgba(0, 255, 0, 0.5); /* Replace color */
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -9,7 +9,6 @@
|
|||
./modules/sh.nix
|
||||
./modules/de.nix
|
||||
./modules/utils.nix
|
||||
./modules/stylix.nix
|
||||
];
|
||||
|
||||
# This enables using home-manager from the command line.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue