added stylix

This commit is contained in:
Adrian Gunnar Lauterer 2024-06-17 21:40:17 +02:00
parent 3d77935764
commit f87ffb375a
7 changed files with 133 additions and 73 deletions

View File

@ -8,6 +8,12 @@
home-manager.url = "github:nix-community/home-manager/release-24.05"; home-manager.url = "github:nix-community/home-manager/release-24.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
stylix.url = "github:bluskript/stylix/6bc871ab352c9f18d1179daab9e392a4d46393af";
stylix.inputs.nixpkgs.follows = "nixpkgs";
stylix.inputs.home-manager.follows = "home-manager";
ozai.url = "git+https://git.pvv.ntnu.no/Projects/ozai.git"; ozai.url = "git+https://git.pvv.ntnu.no/Projects/ozai.git";
ozai.inputs.nixpkgs.follows = "unstable"; ozai.inputs.nixpkgs.follows = "unstable";
ozai-webui.url = "git+https://git.pvv.ntnu.no/adriangl/ozai-webui.git"; ozai-webui.url = "git+https://git.pvv.ntnu.no/adriangl/ozai-webui.git";
@ -28,6 +34,7 @@
outputs = { outputs = {
self self
, home-manager , home-manager
, stylix
, matrix-synapse-next , matrix-synapse-next
, ozai , ozai
, ozai-webui , ozai-webui
@ -80,8 +87,10 @@
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users."gunalx" = import ./home/full.nix; home-manager.users."gunalx" = import ./home/full.nix;
} }
#need to choose one. The nixos one has bootloader and display manager in addition to the home manager one.
inputs.stylix.nixosModules.stylix
#inputs.stylix.homeManagerModules.stylix
]; ];
}; };

BIN
home/assets/wallpaper.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

View File

@ -6,27 +6,28 @@
programs.foot.enable = true; programs.foot.enable = true;
programs.foot.settings = { programs.foot.settings = {
colors = { ##lets stylix handle this instead.
alpha="0.9"; #colors = {
foreground="ffffff"; # alpha="0.9";
background="000000"; # foreground="ffffff";
regular0="2e3436"; # background="000000";
regular1="cc0000"; # regular0="2e3436";
regular2="c4e9a0"; # regular1="cc0000";
regular3="cc4a00"; # regular2="c4e9a0";
regular4="c3465a"; # regular3="cc4a00";
regular5="c75507"; # regular4="c3465a";
regular6="c06989"; # regular5="c75507";
regular7="cd3d7c"; # regular6="c06989";
bright0="555753"; # regular7="cd3d7c";
bright1="5ef292"; # bright0="555753";
bright2="58ae23"; # bright1="5ef292";
bright3="5fce94"; # bright2="58ae23";
bright4="5729fc"; # bright3="5fce94";
bright5="5ad7fa"; # bright4="5729fc";
bright6="534e2e"; # bright5="5ad7fa";
bright7="5eeeee"; # bright6="534e2e";
}; # bright7="5eeeee";
#};
main = { main = {
term = "xterm-256color"; term = "xterm-256color";
font = "0xproto:size=12"; font = "0xproto:size=12";

View File

@ -4,11 +4,13 @@
./base.nix ./base.nix
./code.nix ./code.nix
./sway.nix ./sway.nix
./stylix.nix
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
firefox firefox
gimp gimp
dconf
]; ];
} }

47
home/stylix.nix Normal file
View File

@ -0,0 +1,47 @@
{ pkgs, }:
{
stylix.enable = true;
stylix.image = pkgs.fetchurl {
url = "https://www.pixelstalk.net/wp-content/uploads/2016/05/Epic-Anime-Awesome-Wallpapers.jpg";
sha256 = "enQo3wqhgf0FEPHj2coOCvo7DuZv+x5rL/WIo4qPI50=";
};
stylix.base16Scheme = ${pkgs.base16-schemes}/share/themes/apathy.yaml;
# stylix.fonts = {
# monospace = {
# package = pkgs.nerdfonts.override {fonts = [“JetBrainsMono”];};
# name = “JetBrainsMono Nerd Font Mono”;
# };
# sansSerif = {
# package = pkgs.dejavu_fonts;
# name = “DejaVu Sans”;
# };
# serif = {
# package = pkgs.dejavu_fonts;
# name = “DejaVu Serif”;
# };
# };
# stylix.fonts.sizes = {
# applications = 16;
# terminal = 12;
# desktop = 12;
# popups = 12;
# };
stylix.opacity = {
applications = 1.0;
terminal = 0.8;
desktop = 1.0;
popups = 1.0;
};
stylix.polarity = dark # “light” or “either”
}

BIN
home/w.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

View File

@ -13,57 +13,58 @@
allow_markup = true; allow_markup = true;
width = "80%"; width = "80%";
}; };
style = '' ## let stylix handle this.
* { # style = ''
font-family: monospace; # * {
} # font-family: monospace;
# }
window { # window {
margin: 0px; # margin: 0px;
border: 1px solid #c0c0c0; # border: 1px solid #c0c0c0;
background-color: #282a36; # background-color: #282a36;
border-radius: 10%; # border-radius: 10%;
} # }
#
#input { # #input {
margin: 2 px; # margin: 2 px;
border: none; # border: none;
color: #222222; # color: #222222;
background-color: #eeeeee; # background-color: #eeeeee;
} # }
#
#inner-box { # #inner-box {
margin: 2px; # margin: 2px;
border: none; # border: none;
background-color: #282a36; # background-color: #282a36;
} # }
#
#outer-box { # #outer-box {
margin: 2px; # margin: 2px;
border: none; # border: none;
background-color: #282a36; # background-color: #282a36;
} # }
#
#scroll { # #scroll {
margin: 0px; # margin: 0px;
border: none; # border: none;
} # }
#
#text { # #text {
margin: 2px; # margin: 2px;
border: none; # border: none;
color: #f8f8f2; # color: #f8f8f2;
} # }
#
#entry:selected { # #entry:selected {
background-color: #44475a; # background-color: #44475a;
} # }
#entry { # #entry {
border-bottom-style: solid; # border-bottom-style: solid;
border-width: 1px; # border-width: 1px;
border-color: #d4af37; # border-color: #d4af37;
} # }
''; # '';
}; };