1
Fork 0

stylix and stuff

This commit is contained in:
Matei Adriel 2022-08-16 11:31:45 +03:00
parent a42f52d77b
commit 26b211b643
9 changed files with 148 additions and 54 deletions
modules
applications/xmonad
default.nixnix.nix
themes

View file

@ -10,11 +10,11 @@ import XMonad.Config (defaultConfig)
import XMonad.Config.Kde
import XMonad.Hooks.EwmhDesktops (ewmh, fullscreenEventHook)
import XMonad.Hooks.ManageDocks
import XMonad.Layout.NoBorders
import XMonad.Layout.Spacing
import XMonad.Layout.ThreeColumns
import XMonad.Operations
import XMonad.Util.EZConfig
import XMonad.Layout.NoBorders
kdeOn :: Bool
kdeOn = False
@ -33,7 +33,7 @@ main =
handleEventHook = handleEventHook kdeConfig <+> fullscreenEventHook,
terminal = myTerminal,
workspaces = myWorkspaces,
borderWidth = 0
borderWidth = 0
}
`additionalKeysP` keymap
where

View file

@ -13,4 +13,5 @@
./printers.nix
# ./bluetooth.nix
];
}

View file

@ -1,45 +1,35 @@
{ pkgs, ... }: {
# Idk why tf I need to add this here
nixpkgs.config.permittedInsecurePackages = [
"nodejs-12.22.12"
];
home-manager.users.adrielus = {
nixpkgs.config.permittedInsecurePackages = [
"nodejs-12.22.12"
];
};
nix = {
# Emanble nix flakes
package = pkgs.nixFlakes;
trustedUsers = [ "root" "adrielus" "@wheel" ];
autoOptimiseStore = true;
optimise.automatic = true;
gc.automatic = true;
optimise.automatic = true;
# Protect nix-shell from garbage collection
# TODO: look into whether this is still needed when using nix flakes
extraOptions = ''
keep-outputs = true
keep-derivations = true
experimental-features = nix-command flakes
'';
# Caching and whatnot
binaryCaches = [
"https://nix-community.cachix.org"
"https://cm-idris2-pkgs.cachix.org"
"https://cache.nixos.org"
# "https://all-hies.cachix.org" # Do I even use all-hies anymore?
];
settings = {
trusted-users = [ "root" "adrielus" "@wheel" ];
binaryCachePublicKeys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cm-idris2-pkgs.cachix.org-1:YB2oJSEsD5oMJjAESxolC2GQtE6B5I6jkWhte2gtXjk="
# "all-hies.cachix.org-1:JjrzAOEUsD9ZMt8fdFbzo3jNAyEWlPAwdVuHw4RD43k="
];
auto-optimise-store = true;
# Caching and whatnot
substituters = [
"https://cache.nixos.org"
"https://nix-community.cachix.org"
"https://cm-idris2-pkgs.cachix.org"
"https://danth.cachix.org"
# "https://all-hies.cachix.org" # Do I even use all-hies anymore?
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cm-idris2-pkgs.cachix.org-1:YB2oJSEsD5oMJjAESxolC2GQtE6B5I6jkWhte2gtXjk="
"danth.cachix.org-1:wpodfSL7suXRc/rJDZZUptMa1t4MJ795hemRN0q84vI="
# "all-hies.cachix.org-1:JjrzAOEUsD9ZMt8fdFbzo3jNAyEWlPAwdVuHw4RD43k="
];
};
};
}

View file

@ -1,8 +1,29 @@
{ ... }: {
{ pkgs, ... }:
let
base16-schemes =
pkgs.fetchFromGitHub {
owner = "base16-project";
repo = "base16-schemes";
rev = "99529527e7cb3d777fb6e041c2aabbe6cdec4c4c";
sha256 = "08avs0fykyjl1k3476vhm9rm0hvrpl2hfmc78r3h6yfnjnnl6q66";
};
in
{
imports = [
./gtk.nix # Sets up gtk theming
# ./gtk.nix # Sets up gtk theming
./xresources.nix # Sets up xresources
./fonts.nix # Installs fonts and stuff (TODO: consider moving this into the individual themes which require these fonts?)
./wallpaper.nix # Sets the wallpaper required by the current theme
];
stylix = {
image = ./wallpapers/synthwave.jpg;
polarity = "dark";
autoEnable = false;
targets.grub.enable = true;
base16Scheme = "${base16-schemes}/catppuccin.yaml";
};
}