This commit is contained in:
m3tam3re 2023-04-07 06:09:28 +02:00
parent e78f011441
commit 4908eeb0a5
5 changed files with 240 additions and 171 deletions

View File

@ -19,6 +19,22 @@
"type": "github" "type": "github"
} }
}, },
"base16-schemes": {
"flake": false,
"locked": {
"lastModified": 1665690101,
"narHash": "sha256-J2ZvNaVFkqaTXzYO5L+jyRORfIOavFPKvWItP6UTMKs=",
"owner": "tinted-theming",
"repo": "base16-schemes",
"rev": "a3dc916cf90471a422c0bfe1bb4b1bdd12185ced",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "base16-schemes",
"type": "github"
}
},
"darwin": { "darwin": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -140,6 +156,25 @@
"type": "github" "type": "github"
} }
}, },
"nix-colors": {
"inputs": {
"base16-schemes": "base16-schemes",
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1672236234,
"narHash": "sha256-dpBIuxcDEvJbLD8fTipE0A0JbQD1lZB94zYFPoh01PI=",
"owner": "misterio77",
"repo": "nix-colors",
"rev": "7e459f1d88ac54fc2f4b308adb5064863006e4b1",
"type": "github"
},
"original": {
"owner": "misterio77",
"repo": "nix-colors",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1677676435, "lastModified": 1677676435,
@ -156,6 +191,21 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-lib": {
"locked": {
"lastModified": 1655599917,
"narHash": "sha256-kjZbt5WdTrnjMxL79okg9TCoRUdADG50x/TWozbyTsE=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "5fb55578aa2f1a502d636a8ac71aece57cb730bb",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1679865578, "lastModified": 1679865578,
@ -226,6 +276,7 @@
"deploy-rs": "deploy-rs", "deploy-rs": "deploy-rs",
"home-manager": "home-manager", "home-manager": "home-manager",
"hyprland": "hyprland", "hyprland": "hyprland",
"nix-colors": "nix-colors",
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs_4",
"nixpkgs-unstable": "nixpkgs-unstable" "nixpkgs-unstable": "nixpkgs-unstable"
} }

View File

@ -13,9 +13,10 @@
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
deploy-rs.url = "github:serokell/deploy-rs"; deploy-rs.url = "github:serokell/deploy-rs";
hyprland.url = "github:hyprwm/Hyprland"; hyprland.url = "github:hyprwm/Hyprland";
nix-colors.url = "github:misterio77/nix-colors";
}; };
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, hyprland outputs = { self, nix-colors, nixpkgs, nixpkgs-unstable, home-manager, hyprland
, agenix, deploy-rs, ... }@inputs: , agenix, deploy-rs, ... }@inputs:
let let
inherit (self) outputs; inherit (self) outputs;
@ -78,7 +79,7 @@
# Laptop # Laptop
"m3tam3re@m3-nix" = home-manager.lib.homeManagerConfiguration { "m3tam3re@m3-nix" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux"; pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs = { inherit inputs; extraSpecialArgs = { inherit inputs nix-colors;
}; };
modules = [ modules = [
./home/users/m3tam3re/m3-nix.nix ./home/users/m3tam3re/m3-nix.nix

View File

@ -1,9 +1,9 @@
{ pkgs, lib, outputs, ... }: { pkgs, lib, outputs, nix-colors, ... }:
{ {
imports = [ imports = [
./crypto.nix ./crypto.nix
./design.nix ./design.nix
./espanso.nix # ./espanso.nix
./hyprland ./hyprland
./i3-gaps.nix ./i3-gaps.nix
./extrafonts.nix ./extrafonts.nix
@ -13,9 +13,11 @@
./qt.nix ./qt.nix
./rofi.nix ./rofi.nix
./syncthing.nix ./syncthing.nix
nix-colors.homeManagerModule
]; ];
xdg.mimeApps.enable = true; xdg.mimeApps.enable = true;
colorScheme = nix-colors.colorSchemes.dracula;
home.sessionVariables = { home.sessionVariables = {
WEBKIT_DISABLE_COMPOSITING_MODE = "1"; WEBKIT_DISABLE_COMPOSITING_MODE = "1";
@ -47,6 +49,7 @@
libnotify libnotify
lxappearance lxappearance
nyxt nyxt
pamixer
pasystray pasystray
pavucontrol pavucontrol
picom picom

View File

@ -1,8 +1,12 @@
{ home, colorscheme, wallpaper }: { home, ... }:
let inherit (home.sessionVariables) TERMINAL BROWSER EDITOR; let
inherit (home.sessionVariables) TERMINAL BROWSER EDITOR;
in '' in ''
monitor=eDP-1,preferred, 2560x0, auto monitor=eDP-1,preferred, 2560x0, auto
monitor=DP-2,preferred, 0x0, auto monitor=DP-2,preferred, 0x0, auto
exec-once = hyprpaper
exec-once = waybar exec-once = waybar
exec-once = wl-paste -p -t text --watch clipman store -P --histpath="~/.local/share/clipman-primary.json" exec-once = wl-paste -p -t text --watch clipman store -P --histpath="~/.local/share/clipman-primary.json"
# Source a file (multi-file configs) # Source a file (multi-file configs)

View File

@ -1,8 +1,18 @@
{ inputs, config, lib, pkgs, ... }: { { inputs, config, lib, pkgs, ... }: {
imports = [ inputs.hyprland.homeManagerModules.default ]; imports = [ inputs.hyprland.homeManagerModules.default ];
programs = {
fish.loginShellInit = ''
if test (tty) = "/dev/tty1"
exec Hyprland &> /dev/null
end
'';
};
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
nvidiaPatches = true; nvidiaPatches = true;
extraConfig =
(import ./config.nix { inherit (config) home; });
}; };
programs.waybar.package = pkgs.waybar.overrideAttrs programs.waybar.package = pkgs.waybar.overrideAttrs
(oa: { mesonFlags = (oa.mesonFlags or [ ]) ++ [ "-Dexperimental=true" ]; }); (oa: { mesonFlags = (oa.mesonFlags or [ ]) ++ [ "-Dexperimental=true" ]; });