Compare commits

10 Commits

Author SHA1 Message Date
459002ff54 Update emacs for non-wayland systems 2024-09-02 20:09:57 -07:00
2349c35b13 More nvidia specific wayland settings
Even though I'm kind of giving up on nvidia+wayland emotionally right now
2024-09-02 20:09:29 -07:00
343b7f5ff2 Add basic i3wm setup 2024-09-02 20:09:16 -07:00
84168e2d9b Add solaar 2024-08-31 14:16:42 -07:00
80e7090d7f Fix kdeconnect 2024-08-31 14:16:34 -07:00
e758eaef20 Don't override hyprland package 2024-08-24 10:42:50 -07:00
8e7f1f1577 Add moonlight 2024-08-24 09:56:27 -07:00
4d34909b52 Just pass inputs around 2024-08-24 09:54:17 -07:00
4dfa85d7f5 Fix z790prors monitor settings 2024-08-23 17:13:52 -07:00
c3a5b92e50 Revert pinning change 2024-08-23 17:13:44 -07:00
7 changed files with 43 additions and 98 deletions

83
flake.lock generated
View File

@@ -3,22 +3,18 @@
"aquamarine": { "aquamarine": {
"inputs": { "inputs": {
"hyprutils": [ "hyprutils": [
"system-flake",
"hyprland", "hyprland",
"hyprutils" "hyprutils"
], ],
"hyprwayland-scanner": [ "hyprwayland-scanner": [
"system-flake",
"hyprland", "hyprland",
"hyprwayland-scanner" "hyprwayland-scanner"
], ],
"nixpkgs": [ "nixpkgs": [
"system-flake",
"hyprland", "hyprland",
"nixpkgs" "nixpkgs"
], ],
"systems": [ "systems": [
"system-flake",
"hyprland", "hyprland",
"systems" "systems"
] ]
@@ -57,31 +53,9 @@
"type": "github" "type": "github"
} }
}, },
"home-manager_2": {
"inputs": {
"nixpkgs": [
"system-flake",
"nixpkgs"
]
},
"locked": {
"lastModified": 1723986931,
"narHash": "sha256-Fy+KEvDQ+Hc8lJAV3t6leXhZJ2ncU5/esxkgt3b8DEY=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "2598861031b78aadb4da7269df7ca9ddfc3e1671",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"hy3": { "hy3": {
"inputs": { "inputs": {
"hyprland": [ "hyprland": [
"system-flake",
"hyprland" "hyprland"
] ]
}, },
@@ -103,17 +77,14 @@
"hyprcursor": { "hyprcursor": {
"inputs": { "inputs": {
"hyprlang": [ "hyprlang": [
"system-flake",
"hyprland", "hyprland",
"hyprlang" "hyprlang"
], ],
"nixpkgs": [ "nixpkgs": [
"system-flake",
"hyprland", "hyprland",
"nixpkgs" "nixpkgs"
], ],
"systems": [ "systems": [
"system-flake",
"hyprland", "hyprland",
"systems" "systems"
] ]
@@ -139,14 +110,13 @@
"hyprlang": "hyprlang", "hyprlang": "hyprlang",
"hyprutils": "hyprutils", "hyprutils": "hyprutils",
"hyprwayland-scanner": "hyprwayland-scanner", "hyprwayland-scanner": "hyprwayland-scanner",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs",
"systems": "systems", "systems": "systems",
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1723058230, "lastModified": 1723058230,
"narHash": "sha256-deu8zvgseDg2gQEnZiCda4TrbA6pleE9iItoZlsoMtE=", "narHash": "sha256-deu8zvgseDg2gQEnZiCda4TrbA6pleE9iItoZlsoMtE=",
"ref": "refs/heads/main",
"rev": "9a09eac79b85c846e3a865a9078a3f8ff65a9259", "rev": "9a09eac79b85c846e3a865a9078a3f8ff65a9259",
"revCount": 5069, "revCount": 5069,
"submodules": true, "submodules": true,
@@ -163,13 +133,11 @@
"hyprland-protocols": { "hyprland-protocols": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"system-flake",
"hyprland", "hyprland",
"xdph", "xdph",
"nixpkgs" "nixpkgs"
], ],
"systems": [ "systems": [
"system-flake",
"hyprland", "hyprland",
"xdph", "xdph",
"systems" "systems"
@@ -192,17 +160,14 @@
"hyprlang": { "hyprlang": {
"inputs": { "inputs": {
"hyprutils": [ "hyprutils": [
"system-flake",
"hyprland", "hyprland",
"hyprutils" "hyprutils"
], ],
"nixpkgs": [ "nixpkgs": [
"system-flake",
"hyprland", "hyprland",
"nixpkgs" "nixpkgs"
], ],
"systems": [ "systems": [
"system-flake",
"hyprland", "hyprland",
"systems" "systems"
] ]
@@ -224,12 +189,10 @@
"hyprutils": { "hyprutils": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"system-flake",
"hyprland", "hyprland",
"nixpkgs" "nixpkgs"
], ],
"systems": [ "systems": [
"system-flake",
"hyprland", "hyprland",
"systems" "systems"
] ]
@@ -251,12 +214,10 @@
"hyprwayland-scanner": { "hyprwayland-scanner": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"system-flake",
"hyprland", "hyprland",
"nixpkgs" "nixpkgs"
], ],
"systems": [ "systems": [
"system-flake",
"hyprland", "hyprland",
"systems" "systems"
] ]
@@ -276,22 +237,6 @@
} }
}, },
"nixpkgs": { "nixpkgs": {
"locked": {
"lastModified": 1723637854,
"narHash": "sha256-med8+5DSWa2UnOqtdICndjDAEjxr5D7zaIiK4pn0Q7c=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c3aa7b8938b17aebd2deecf7be0636000d62a2b9",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1722185531, "lastModified": 1722185531,
"narHash": "sha256-veKR07psFoJjINLC8RK4DiLniGGMgF3QMlS4tb74S6k=", "narHash": "sha256-veKR07psFoJjINLC8RK4DiLniGGMgF3QMlS4tb74S6k=",
@@ -307,7 +252,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_3": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1723637854, "lastModified": 1723637854,
"narHash": "sha256-med8+5DSWa2UnOqtdICndjDAEjxr5D7zaIiK4pn0Q7c=", "narHash": "sha256-med8+5DSWa2UnOqtdICndjDAEjxr5D7zaIiK4pn0Q7c=",
@@ -326,28 +271,9 @@
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs",
"system-flake": "system-flake"
}
},
"system-flake": {
"inputs": {
"home-manager": "home-manager_2",
"hy3": "hy3", "hy3": "hy3",
"hyprland": "hyprland", "hyprland": "hyprland",
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_2"
},
"locked": {
"dirtyRev": "c11d973b4b80e9093469c2d631413400af2d0122-dirty",
"dirtyShortRev": "c11d973-dirty",
"lastModified": 1724450819,
"narHash": "sha256-m9w2HgDUvtXegSjuIPE3whTYOPnyEZuAdIRZLMtGQBc=",
"type": "git",
"url": "file:///etc/nixos"
},
"original": {
"type": "git",
"url": "file:///etc/nixos"
} }
}, },
"systems": { "systems": {
@@ -369,17 +295,14 @@
"inputs": { "inputs": {
"hyprland-protocols": "hyprland-protocols", "hyprland-protocols": "hyprland-protocols",
"hyprlang": [ "hyprlang": [
"system-flake",
"hyprland", "hyprland",
"hyprlang" "hyprlang"
], ],
"nixpkgs": [ "nixpkgs": [
"system-flake",
"hyprland", "hyprland",
"nixpkgs" "nixpkgs"
], ],
"systems": [ "systems": [
"system-flake",
"hyprland", "hyprland",
"systems" "systems"
] ]

View File

@@ -10,13 +10,19 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
system-flake = { hyprland = {
type = "git"; type = "git";
url = "file:///etc/nixos"; url = "https://github.com/hyprwm/Hyprland";
submodules = true;
rev = "9a09eac79b85c846e3a865a9078a3f8ff65a9259";
};
hy3 = {
url = "github:outfoxxed/hy3?ref=hl0.42.0";
inputs.hyprland.follows = "hyprland";
}; };
}; };
outputs = { nixpkgs, home-manager, ... } @inputs : outputs = { nixpkgs, home-manager, hyprland, ... } @inputs:
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
@@ -27,17 +33,14 @@
# Specify your home configuration modules here, for example, # Specify your home configuration modules here, for example,
# the path to your home.nix. # the path to your home.nix.
modules = [ modules = [
inputs.system-flake.inputs.hyprland.homeManagerModules.default hyprland.homeManagerModules.default
./home.nix ./home.nix
]; ];
# Optionally use extraSpecialArgs # Optionally use extraSpecialArgs
# to pass through arguments to home.nix # to pass through arguments to home.nix
extraSpecialArgs = { extraSpecialArgs = { inherit inputs; };
hy3 = inputs.system-flake.inputs.hy3;
hyprland = inputs.system-flake.inputs.hyprland;
};
}; };
}; };
} }

View File

@@ -51,11 +51,13 @@ in
pkgs.killall pkgs.killall
pkgs.kitty pkgs.kitty
pkgs.less pkgs.less
pkgs.moonlight-qt
pkgs.ncdu pkgs.ncdu
pkgs.pandoc pkgs.pandoc
pkgs.pinentry-qt pkgs.pinentry-qt
#pkgs.pytest #pkgs.pytest
pkgs.shellcheck pkgs.shellcheck
pkgs.solaar # Logitech management software
pkgs.tmux pkgs.tmux
pkgs.waybar pkgs.waybar
pkgs.wofi pkgs.wofi
@@ -108,6 +110,7 @@ in
./modules/applications/emacs/default.nix ./modules/applications/emacs/default.nix
./modules/games/lutris/default.nix ./modules/games/lutris/default.nix
./modules/window_managers/hyprland/default.nix ./modules/window_managers/hyprland/default.nix
./modules/window_managers/i3/default.nix
]; ];
programs.bash.enable = true; programs.bash.enable = true;
@@ -185,6 +188,7 @@ in
services.kdeconnect = { services.kdeconnect = {
enable = true; enable = true;
indicator = true; indicator = true;
package = pkgs.kdePackages.kdeconnect-kde;
}; };
services.spotifyd = { services.spotifyd = {

View File

@@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let
emacs = pkgs.emacs29-pgtk; emacs = pkgs.emacs29;
doomSync = (let doomSync = (let
git = pkgs.git; git = pkgs.git;
in '' in ''

View File

@@ -1,4 +1,4 @@
{ hyprland, hy3, ... }: { inputs, ... }:
{ {
imports = [ imports = [
@@ -7,8 +7,7 @@
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
package = hyprland.packages.x86_64-linux.hyprland; plugins = [ inputs.hy3.packages.x86_64-linux.hy3 ];
plugins = [ hy3.packages.x86_64-linux.hy3 ];
settings = { settings = {
"$mod" = "SUPER"; "$mod" = "SUPER";
"$terminal" = "kitty"; "$terminal" = "kitty";
@@ -20,11 +19,6 @@
"dunst" "dunst"
]; ];
env = [
"XCURSOR_SIZE,24"
"HYPRCURSOR_SIZE,24"
];
xwayland = { xwayland = {
force_zero_scaling = true; force_zero_scaling = true;
}; };

View File

@@ -1,5 +1,16 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
wayland.windowManager.hyprland.settings.monitor = ",preferred,3440x1440@164.90Hz,1.33333"; wayland.windowManager.hyprland.settings.monitor = "DP-1,3440x1440@164.90,0x0,1.33333,vrr,1";
wayland.windowManager.hyprland.settings.env = [
"LIBVA_DRIVER_NAME,nvidia"
"XDG_SESSION_TYPE,wayland"
"GBM_BACKEND,nvidia-drm"
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
"NVD_BACKEND,direct"
"ELECTRON_OZONE_PLATFORM_HINT,auto"
"NIXOS_OZONE_WL,1"
];
wayland.windowManager.hyprland.settings.cursor.no_hardware_cursors = true;
} }

View File

@@ -0,0 +1,10 @@
{ config, lib, pkgs, ... }:
{
xsession.windowManager.i3 = {
enable = true;
config = {
modifier = "Mod4";
};
};
}