decent framework setup, add batou_jf
This commit is contained in:
176
flake.nix
176
flake.nix
@@ -18,6 +18,27 @@
|
|||||||
outputs = { self, nixpkgs, stylix, niri, home-manager, nixos-hardware }@attrs:
|
outputs = { self, nixpkgs, stylix, niri, home-manager, nixos-hardware }@attrs:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
make_besley = pkgs:(lib: (pkgs.stdenvNoCC.mkDerivation rec {
|
||||||
|
pname = "besley";
|
||||||
|
version = "4.0";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "indestructible-type";
|
||||||
|
repo = "Besley";
|
||||||
|
rev = "99d5b97fcb863c4a667571ac8f86f745c345d3ab";
|
||||||
|
sha256 = "sha256-N6QU3Pd6EnIrdbRtDT3mW5ny683DBWo0odADJBSdA2E=";
|
||||||
|
};
|
||||||
|
installPhase = ''
|
||||||
|
install -D -t $out/share/fonts/opentype/ $(find $src -type f -name '*.otf')
|
||||||
|
install -D -t $out/share/fonts/truetype/ $(find $src -type f -name '*.ttf')
|
||||||
|
'';
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://indestructibletype.com/Besley.html";
|
||||||
|
description = "by indestructable-type";
|
||||||
|
license = licenses.ofl;
|
||||||
|
maintainers = [ ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}));
|
||||||
homeManagerSharedModule = {
|
homeManagerSharedModule = {
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.users.nathan = { config, pkgs, lib, ... }:{
|
home-manager.users.nathan = { config, pkgs, lib, ... }:{
|
||||||
@@ -32,7 +53,10 @@
|
|||||||
home.stateVersion = "22.11";
|
home.stateVersion = "22.11";
|
||||||
|
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
home.packages = with pkgs; [ fira-code jetbrains-mono iosevka monoid recursive swww xwayland-satellite ];
|
home.packages = with pkgs; [
|
||||||
|
fira-code jetbrains-mono iosevka monoid recursive inter (make_besley pkgs lib)
|
||||||
|
xwayland-satellite swww
|
||||||
|
];
|
||||||
|
|
||||||
systemd.user.services.mpris-proxy = {
|
systemd.user.services.mpris-proxy = {
|
||||||
Unit.Description = "Mpris proxy";
|
Unit.Description = "Mpris proxy";
|
||||||
@@ -67,54 +91,56 @@
|
|||||||
reload_style_on_change = true;
|
reload_style_on_change = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
#style = ''
|
style = ''
|
||||||
# * {
|
/*
|
||||||
# /*
|
* {
|
||||||
# border: none;
|
border: none;
|
||||||
# border-radius: 0;
|
border-radius: 0;
|
||||||
# */
|
font-family: Recursive;
|
||||||
# font-family: Recursive;
|
}
|
||||||
# }
|
*/
|
||||||
# window#waybar {
|
window#waybar {
|
||||||
# background: transparent;
|
background: transparent;
|
||||||
# color: #ffffff;
|
color: #ffffff;
|
||||||
# }
|
}
|
||||||
# button {
|
button {
|
||||||
# box-shadow: none;
|
box-shadow: none;
|
||||||
# border: none;
|
border: none;
|
||||||
# border-radius: 0;
|
border-radius: 0;
|
||||||
# transition-property: none;
|
transition-property: none;
|
||||||
# }
|
}
|
||||||
# #workspaces button {
|
#workspaces button {
|
||||||
# padding: 0 5px;
|
padding: 0 5px;
|
||||||
# background-color: transparent;
|
background-color: transparent;
|
||||||
# color: #ffffff;
|
color: #ffffff;
|
||||||
# }
|
}
|
||||||
# #mode {
|
#mode {
|
||||||
# background-color: #64829D;
|
background-color: #64829D;
|
||||||
# border-bottom: 3px solid #ffffff;
|
border-bottom: 3px solid #ffffff;
|
||||||
# }
|
}
|
||||||
# #memory, #disk, #network, #pulseaudio, #battery, #power-profiles-daemon, #backlight, #clock {
|
#memory, #disk, #network, #pulseaudio, #battery, #power-profiles-daemon, #backlight, #clock {
|
||||||
# padding: 0 10px;
|
padding: 0 10px;
|
||||||
# color: #f0f0ff;
|
color: #f0f0ff;
|
||||||
# background-color: rgba(30,30,46,0.6);
|
background-color: rgba(30,30,46,0.6);
|
||||||
# border-radius: 99px;
|
border-radius: 99px;
|
||||||
# margin-left: 4px;
|
margin-left: 4px;
|
||||||
# }
|
}
|
||||||
# #window, #workspaces {
|
#window, #workspaces {
|
||||||
# margin: 0 4px;
|
margin: 0 4px;
|
||||||
# }
|
}
|
||||||
# #clock {
|
#clock {
|
||||||
# font-weight: bold;
|
font-weight: bold;
|
||||||
# }
|
}
|
||||||
# #battery {
|
#battery {
|
||||||
# margin-left: 4px;
|
margin-left: 4px;
|
||||||
# }
|
}
|
||||||
# #pulseaudio {
|
/*
|
||||||
# color: #000000;
|
#pulseaudio {
|
||||||
# background-color: #f1c40f;
|
color: #000000;
|
||||||
# }
|
background-color: #f1c40f;
|
||||||
#'';
|
}
|
||||||
|
*/
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.niri.settings = {
|
programs.niri.settings = {
|
||||||
@@ -127,6 +153,7 @@
|
|||||||
};
|
};
|
||||||
spawn-at-startup = [
|
spawn-at-startup = [
|
||||||
{ command = [ "swww-daemon" ]; }
|
{ command = [ "swww-daemon" ]; }
|
||||||
|
{ command = [ "swww" "img" "${config.stylix.image}" ]; }
|
||||||
{ command = [ "waybar" ]; }
|
{ command = [ "waybar" ]; }
|
||||||
{ command = [ "xwayland-satellite" ]; }
|
{ command = [ "xwayland-satellite" ]; }
|
||||||
];
|
];
|
||||||
@@ -303,8 +330,8 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
window-decoration = false;
|
window-decoration = false;
|
||||||
font-family = "Recursive Mono Linear Static";
|
#font-family = "Recursive Mono Linear Static";
|
||||||
font-size = 11;
|
#font-size = 11;
|
||||||
#theme = "GruvboxDarkHard";
|
#theme = "GruvboxDarkHard";
|
||||||
#theme = "Horizon";
|
#theme = "Horizon";
|
||||||
#theme = "IC_Green_PPL";
|
#theme = "IC_Green_PPL";
|
||||||
@@ -602,15 +629,19 @@
|
|||||||
stylix = {
|
stylix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
#image = /home/nathan/Wallpapers/walls/green-tea.jpg;
|
#image = /home/nathan/Wallpapers/walls/green-tea.jpg;
|
||||||
image = pkgs.fetchurl {
|
#image = ./cherry_tree.jpg;
|
||||||
url = "https://raw.githubusercontent.com/kiedtl/walls/refs/heads/master/green-tea.jpg";
|
#image = ./skyscraper.jpg;
|
||||||
sha256 = "sha256-+NcZMBnbEWurmkOkzdrxGwBlxzUO3Sitt6Uoq9plc7o=";
|
image = ./village.jpg;
|
||||||
};
|
#image = pkgs.fetchurl {
|
||||||
|
# url = "https://raw.githubusercontent.com/kiedtl/walls/refs/heads/master/green-tea.jpg";
|
||||||
|
# sha256 = "sha256-+NcZMBnbEWurmkOkzdrxGwBlxzUO3Sitt6Uoq9plc7o=";
|
||||||
|
#};
|
||||||
polarity = "dark";
|
polarity = "dark";
|
||||||
fonts = {
|
fonts = {
|
||||||
# hehe casual as serif
|
# hehe casual as serif
|
||||||
serif = { package = pkgs.recursive; name = "Recursive Sans Casual Static"; };
|
serif = { package = (make_besley pkgs lib); name = "Besley"; };
|
||||||
sansSerif = { package = pkgs.recursive; name = "Recursive Sans Linear Static"; };
|
#sansSerif = { package = pkgs.recursive; name = "Recursive Sans Linear Static"; };
|
||||||
|
sansSerif = { package = pkgs.inter; name = "Inter"; };
|
||||||
monospace = { package = pkgs.recursive; name = "Recursive Mono Linear Static"; };
|
monospace = { package = pkgs.recursive; name = "Recursive Mono Linear Static"; };
|
||||||
emoji = { package = pkgs.noto-fonts-emoji; name = "Noto Color Emoji"; };
|
emoji = { package = pkgs.noto-fonts-emoji; name = "Noto Color Emoji"; };
|
||||||
};
|
};
|
||||||
@@ -759,7 +790,7 @@
|
|||||||
networking.hostName = "nixos-framework"; # Define your hostname.
|
networking.hostName = "nixos-framework"; # Define your hostname.
|
||||||
system.stateVersion = "22.11"; # Did you read the comment?
|
system.stateVersion = "22.11"; # Did you read the comment?
|
||||||
programs.fuse.userAllowOther = true;
|
programs.fuse.userAllowOther = true;
|
||||||
services.jellyfin.enable = true;
|
#services.jellyfin.enable = true;
|
||||||
services.fwupd.enable = true;
|
services.fwupd.enable = true;
|
||||||
#services.xserver = {
|
#services.xserver = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
@@ -853,7 +884,7 @@
|
|||||||
networking.hostName = "nixos-desktop"; # Define your hostname.
|
networking.hostName = "nixos-desktop"; # Define your hostname.
|
||||||
system.stateVersion = "22.11";
|
system.stateVersion = "22.11";
|
||||||
|
|
||||||
services.jellyfin.enable = true;
|
#services.jellyfin.enable = true;
|
||||||
}))
|
}))
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@@ -1215,17 +1246,17 @@
|
|||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
virtualHosts."drop.room409.xyz" = {
|
#virtualHosts."drop.room409.xyz" = {
|
||||||
forceSSL = true;
|
#forceSSL = true;
|
||||||
enableACME = true;
|
#enableACME = true;
|
||||||
locations."/" = {
|
#locations."/" = {
|
||||||
proxyPass = "http://localhost:9009";
|
#proxyPass = "http://localhost:9009";
|
||||||
proxyWebsockets = true;
|
#proxyWebsockets = true;
|
||||||
extraConfig = ''
|
#extraConfig = ''
|
||||||
client_max_body_size 500M;
|
#client_max_body_size 500M;
|
||||||
'';
|
#'';
|
||||||
};
|
#};
|
||||||
};
|
#};
|
||||||
#virtualHosts."www.kraken-lang.org" = {
|
#virtualHosts."www.kraken-lang.org" = {
|
||||||
# forceSSL = true;
|
# forceSSL = true;
|
||||||
# enableACME = true;
|
# enableACME = true;
|
||||||
@@ -1394,11 +1425,10 @@
|
|||||||
# enableACME = true;
|
# enableACME = true;
|
||||||
# locations."/".proxyPass = "http://10.100.0.7:80";
|
# locations."/".proxyPass = "http://10.100.0.7:80";
|
||||||
#};
|
#};
|
||||||
virtualHosts."neel.room409.xyz" = {
|
virtualHosts."batou_jf.room409.xyz" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
basicAuth = { neel = "el_psy_congroo"; };
|
locations."/".proxyPass = "http://100.64.0.1:8096";
|
||||||
locations."/".proxyPass = "http://100.64.0.1:8080";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
BIN
village.jpg
Normal file
BIN
village.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 MiB |
Reference in New Issue
Block a user