stylix and stuff
This commit is contained in:
parent
a42f52d77b
commit
26b211b643
|
@ -48,7 +48,7 @@ in
|
||||||
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
|
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
theme = theme.grub.path;
|
# theme = theme.grub.path;
|
||||||
|
|
||||||
version = 2;
|
version = 2;
|
||||||
};
|
};
|
||||||
|
@ -60,19 +60,10 @@ in
|
||||||
# Enable sound.
|
# Enable sound.
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
|
|
||||||
home-manager.users.adrielus = {
|
|
||||||
manual.manpages.enable = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
system.stateVersion = "19.03";
|
system.stateVersion = "19.03";
|
||||||
|
|
||||||
# TODO: put nixpkgs stuff inside their own file
|
# TODO: put nixpkgs stuff inside their own file
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
nixpkgs.config.allowBroken = true;
|
nixpkgs.config.allowBroken = true;
|
||||||
|
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
|
||||||
"electron-13.6.9"
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
(defcfg
|
(defcfg
|
||||||
;; For Linux
|
;; For Linux
|
||||||
;; input (device-file "$DEVICE") ;; gets dynamically replaced by nix
|
;; input (device-file "$DEVICE") ;; gets dynamically replaced by nix
|
||||||
input (device-file "/dev/input/by-path/pci-0000:00:14.0-usb-0:5:1.0-event-kbd")
|
;; input (device-file "/dev/input/by-path/pci-0000:00:14.0-usb-0:5:1.0-event-kbd")
|
||||||
;; input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd")
|
input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd")
|
||||||
output (uinput-sink "My KMonad output"
|
output (uinput-sink "My KMonad output"
|
||||||
;; To understand the importance of the following line, see the section on
|
;; To understand the importance of the following line, see the section on
|
||||||
;; Compose-key sequences at the near-bottom of this file.
|
;; Compose-key sequences at the near-bottom of this file.
|
||||||
|
|
|
@ -4,12 +4,12 @@ local M = {}
|
||||||
|
|
||||||
-- For some reason the default mappings do not work for me
|
-- For some reason the default mappings do not work for me
|
||||||
function M.setup()
|
function M.setup()
|
||||||
vim.g.tmux_navigator_no_mappings = 1
|
vim.g.tmux_navigator_no_mappings = 1
|
||||||
|
|
||||||
map("n", "<C-h>", ":TmuxNavigateLeft<cr>")
|
map("n", "<C-h>", ":TmuxNavigateLeft<cr>")
|
||||||
map("n", "<C-j>", ":TmuxNavigateDown<cr>")
|
map("n", "<C-j>", ":TmuxNavigateDown<cr>")
|
||||||
map("n", "<C-k>", ":TmuxNavigateUp<cr>")
|
map("n", "<C-k>", ":TmuxNavigateUp<cr>")
|
||||||
map("n", "<C-l>", ":TmuxNavigateRight<cr>")
|
map("n", "<C-l>", ":TmuxNavigateRight<cr>")
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
86
flake.lock
86
flake.lock
|
@ -16,6 +16,27 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"base16": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"stylix",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1658847131,
|
||||||
|
"narHash": "sha256-X6Mml7cT0YR3WCD5fkUhpRVV5ZPcwdcDsND8r8xMqTE=",
|
||||||
|
"owner": "SenchoPens",
|
||||||
|
"repo": "base16.nix",
|
||||||
|
"rev": "6b404cda2e04ca3cf5ca7b877af9c469e1386acb",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "SenchoPens",
|
||||||
|
"repo": "base16.nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"collie": {
|
"collie": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -48,6 +69,28 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"coricamu": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"stylix",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"utils": "utils"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1659649195,
|
||||||
|
"narHash": "sha256-wRpMO4Mm4uizR5M71iipdi8ssSYMEPPAIwWyFYnhnco=",
|
||||||
|
"owner": "danth",
|
||||||
|
"repo": "coricamu",
|
||||||
|
"rev": "cdd2f7326efd91509caf84e69b669a7f9e6782bc",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "danth",
|
||||||
|
"repo": "coricamu",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"dom": {
|
"dom": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -658,7 +701,8 @@
|
||||||
"neovim-nightly-overlay": "neovim-nightly-overlay",
|
"neovim-nightly-overlay": "neovim-nightly-overlay",
|
||||||
"nixos-unstable": "nixos-unstable",
|
"nixos-unstable": "nixos-unstable",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable"
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
|
"stylix": "stylix"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"snocvect": {
|
"snocvect": {
|
||||||
|
@ -693,6 +737,31 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"stylix": {
|
||||||
|
"inputs": {
|
||||||
|
"base16": "base16",
|
||||||
|
"coricamu": "coricamu",
|
||||||
|
"home-manager": [
|
||||||
|
"home-manager"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1660382154,
|
||||||
|
"narHash": "sha256-OMh2cBIm8C/rVVgSuD9Tz0+04N98u1FsGNJMuYCIMDc=",
|
||||||
|
"owner": "danth",
|
||||||
|
"repo": "stylix",
|
||||||
|
"rev": "9185529e3dbededab5f13e5305667a705ee85528",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "danth",
|
||||||
|
"repo": "stylix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"tailrec": {
|
"tailrec": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -709,6 +778,21 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"utils": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1642700792,
|
||||||
|
"narHash": "sha256-XqHrk7hFb+zBvRg6Ghl+AZDq03ov6OshJLiSWOoX5es=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "846b2ae0fc4cc943637d3d1def4454213e203cba",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"xml": {
|
"xml": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
|
@ -11,6 +11,12 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
stylix = {
|
||||||
|
url = "github:danth/stylix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
inputs.home-manager.follows = "home-manager";
|
||||||
|
};
|
||||||
|
|
||||||
# keyboard layout configuration
|
# keyboard layout configuration
|
||||||
kmonad = {
|
kmonad = {
|
||||||
url = "github:kmonad/kmonad?dir=nix";
|
url = "github:kmonad/kmonad?dir=nix";
|
||||||
|
@ -29,7 +35,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ self, nixpkgs, ... }:
|
outputs = inputs@{ self, stylix, nixpkgs, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
provideInputs =
|
provideInputs =
|
||||||
|
@ -55,6 +61,7 @@
|
||||||
modules = [
|
modules = [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
inputs.kmonad.nixosModule
|
inputs.kmonad.nixosModule
|
||||||
|
stylix.nixosModules.stylix
|
||||||
overlays
|
overlays
|
||||||
./hardware/laptop.nix
|
./hardware/laptop.nix
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
|
|
|
@ -10,11 +10,11 @@ import XMonad.Config (defaultConfig)
|
||||||
import XMonad.Config.Kde
|
import XMonad.Config.Kde
|
||||||
import XMonad.Hooks.EwmhDesktops (ewmh, fullscreenEventHook)
|
import XMonad.Hooks.EwmhDesktops (ewmh, fullscreenEventHook)
|
||||||
import XMonad.Hooks.ManageDocks
|
import XMonad.Hooks.ManageDocks
|
||||||
|
import XMonad.Layout.NoBorders
|
||||||
import XMonad.Layout.Spacing
|
import XMonad.Layout.Spacing
|
||||||
import XMonad.Layout.ThreeColumns
|
import XMonad.Layout.ThreeColumns
|
||||||
import XMonad.Operations
|
import XMonad.Operations
|
||||||
import XMonad.Util.EZConfig
|
import XMonad.Util.EZConfig
|
||||||
import XMonad.Layout.NoBorders
|
|
||||||
|
|
||||||
kdeOn :: Bool
|
kdeOn :: Bool
|
||||||
kdeOn = False
|
kdeOn = False
|
||||||
|
@ -33,7 +33,7 @@ main =
|
||||||
handleEventHook = handleEventHook kdeConfig <+> fullscreenEventHook,
|
handleEventHook = handleEventHook kdeConfig <+> fullscreenEventHook,
|
||||||
terminal = myTerminal,
|
terminal = myTerminal,
|
||||||
workspaces = myWorkspaces,
|
workspaces = myWorkspaces,
|
||||||
borderWidth = 0
|
borderWidth = 0
|
||||||
}
|
}
|
||||||
`additionalKeysP` keymap
|
`additionalKeysP` keymap
|
||||||
where
|
where
|
||||||
|
|
|
@ -13,4 +13,5 @@
|
||||||
./printers.nix
|
./printers.nix
|
||||||
# ./bluetooth.nix
|
# ./bluetooth.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,45 +1,35 @@
|
||||||
{ pkgs, ... }: {
|
{ 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 = {
|
nix = {
|
||||||
# Emanble nix flakes
|
|
||||||
package = pkgs.nixFlakes;
|
|
||||||
|
|
||||||
trustedUsers = [ "root" "adrielus" "@wheel" ];
|
|
||||||
|
|
||||||
autoOptimiseStore = true;
|
|
||||||
optimise.automatic = true;
|
|
||||||
gc.automatic = true;
|
gc.automatic = true;
|
||||||
|
optimise.automatic = true;
|
||||||
|
|
||||||
# Protect nix-shell from garbage collection
|
# Protect nix-shell from garbage collection
|
||||||
# TODO: look into whether this is still needed when using nix flakes
|
# TODO: look into whether this is still needed when using nix flakes
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
keep-outputs = true
|
keep-outputs = true
|
||||||
keep-derivations = true
|
keep-derivations = true
|
||||||
experimental-features = nix-command flakes
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Caching and whatnot
|
settings = {
|
||||||
binaryCaches = [
|
trusted-users = [ "root" "adrielus" "@wheel" ];
|
||||||
"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?
|
|
||||||
];
|
|
||||||
|
|
||||||
binaryCachePublicKeys = [
|
auto-optimise-store = true;
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
||||||
"cm-idris2-pkgs.cachix.org-1:YB2oJSEsD5oMJjAESxolC2GQtE6B5I6jkWhte2gtXjk="
|
# Caching and whatnot
|
||||||
# "all-hies.cachix.org-1:JjrzAOEUsD9ZMt8fdFbzo3jNAyEWlPAwdVuHw4RD43k="
|
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="
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,29 @@
|
||||||
{ ... }: {
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
base16-schemes =
|
||||||
|
pkgs.fetchFromGitHub {
|
||||||
|
owner = "base16-project";
|
||||||
|
repo = "base16-schemes";
|
||||||
|
rev = "99529527e7cb3d777fb6e041c2aabbe6cdec4c4c";
|
||||||
|
sha256 = "08avs0fykyjl1k3476vhm9rm0hvrpl2hfmc78r3h6yfnjnnl6q66";
|
||||||
|
};
|
||||||
|
|
||||||
|
in
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./gtk.nix # Sets up gtk theming
|
# ./gtk.nix # Sets up gtk theming
|
||||||
./xresources.nix # Sets up xresources
|
./xresources.nix # Sets up xresources
|
||||||
./fonts.nix # Installs fonts and stuff (TODO: consider moving this into the individual themes which require these fonts?)
|
./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
|
./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";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue