hyprland in homemanager + cleanup
This commit is contained in:
parent
f0f8cd6d0f
commit
4c9adeb9af
8 changed files with 65 additions and 27 deletions
15
flake.nix
15
flake.nix
|
|
@ -2,6 +2,7 @@
|
||||||
description = "Nyx's Nix/Nixos configs";
|
description = "Nyx's Nix/Nixos configs";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
|
# Nix main stuff
|
||||||
nixpkgs = { url = "github:nixos/nixpkgs/nixos-26.05"; };
|
nixpkgs = { url = "github:nixos/nixpkgs/nixos-26.05"; };
|
||||||
nur = {
|
nur = {
|
||||||
url = "github:nix-community/NUR";
|
url = "github:nix-community/NUR";
|
||||||
|
|
@ -11,6 +12,8 @@
|
||||||
url = "github:nix-darwin/nix-darwin/nix-darwin-26.05";
|
url = "github:nix-darwin/nix-darwin/nix-darwin-26.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Macos stuff
|
||||||
nix-homebrew = {
|
nix-homebrew = {
|
||||||
url = "github:zhaofengli/nix-homebrew";
|
url = "github:zhaofengli/nix-homebrew";
|
||||||
};
|
};
|
||||||
|
|
@ -26,18 +29,22 @@
|
||||||
url = "github:Sikarugir-App/homebrew-sikarugir";
|
url = "github:Sikarugir-App/homebrew-sikarugir";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Misc
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-26.05";
|
url = "github:nix-community/home-manager/release-26.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
sops-nix = {
|
|
||||||
url = "github:Mic92/sops-nix";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
steam-config-nix = {
|
steam-config-nix = {
|
||||||
url = "github:different-name/steam-config-nix";
|
url = "github:different-name/steam-config-nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# secrets
|
||||||
|
sops-nix = {
|
||||||
|
url = "github:Mic92/sops-nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
secrets ={
|
secrets ={
|
||||||
url = "git+ssh://git@git.nyxerinys.dev:222/nyxerinys/nix-secrets";
|
url = "git+ssh://git@git.nyxerinys.dev:222/nyxerinys/nix-secrets";
|
||||||
flake = false;
|
flake = false;
|
||||||
|
|
|
||||||
|
|
@ -6,19 +6,10 @@
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./autologin.nix
|
./autologin.nix
|
||||||
./steam.nix
|
./steam.nix
|
||||||
|
./hyprland.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "apollo";
|
networking.hostName = "apollo";
|
||||||
networking.hostId = "40ced703";
|
networking.hostId = "40ced703";
|
||||||
networking.networkmanager.insertNameservers = [ "10.5.0.1" "1.1.1.1" ];
|
networking.networkmanager.insertNameservers = [ "10.5.0.1" "1.1.1.1" ];
|
||||||
|
|
||||||
programs.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
withUWSM = true;
|
|
||||||
xwayland.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
kitty
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
19
hosts/apollo/hyprland.nix
Normal file
19
hosts/apollo/hyprland.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
{ inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
nix.settings = {
|
||||||
|
substituters = ["https://hyprland.cachix.org"];
|
||||||
|
trusted-substituters = ["https://hyprland.cachix.org"];
|
||||||
|
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
withUWSM = true;
|
||||||
|
xwayland.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
kitty
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -3,18 +3,12 @@ with lib;
|
||||||
let
|
let
|
||||||
cfg = config.nyxs-nix.services.home;
|
cfg = config.nyxs-nix.services.home;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = if pkgs.stdenv.pkgs.stdenv.isLinux
|
||||||
inputs.home-manager.darwinModules.home-manager
|
then [ inputs.home-manager.nixosModules.home-manager ]
|
||||||
];
|
else [ inputs.home-manager.darwinModules.home-manager ];
|
||||||
|
|
||||||
options.nyxs-nix.services.home = with types; {
|
options.nyxs-nix.services.home = with types; {
|
||||||
enable = mkEnableOption "Enable the vrrp quotes service";
|
enable = mkEnableOption "Enable Home Manager";
|
||||||
|
|
||||||
isMacOS = mkOption {
|
|
||||||
type = bool;
|
|
||||||
default = false;
|
|
||||||
description = "is this device running on macos";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,20 @@
|
||||||
{ config, pkgs, lib, osConfig, ... }:
|
{ config, pkgs, lib, osConfig, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
imports = if pkgs.stdenv.pkgs.stdenv.isLinux
|
||||||
|
then [ ./linux ]
|
||||||
|
else [ ./mac ];
|
||||||
|
|
||||||
|
|
||||||
# Home Manager needs a bit of information about you and the
|
# Home Manager needs a bit of information about you and the
|
||||||
# paths it should manage.
|
# paths it should manage.
|
||||||
home = {
|
home = {
|
||||||
username = "nyxerinys";
|
username = "nyxerinys";
|
||||||
homeDirectory = (
|
homeDirectory = (
|
||||||
if osConfig.nyxs-nix.services.home.isMacOS then
|
if pkgs.stdenv.isLinux then
|
||||||
"/Users/nyxerinys"
|
|
||||||
else
|
|
||||||
"/home/nyxerinys"
|
"/home/nyxerinys"
|
||||||
|
else
|
||||||
|
"/Users/nyxerinys"
|
||||||
);
|
);
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
prismlauncher
|
prismlauncher
|
||||||
|
|
|
||||||
6
modules/home/nyxerinys/linux/default.nix
Normal file
6
modules/home/nyxerinys/linux/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{ osConfig, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = []
|
||||||
|
++ lib.optionals osConfig.programs.hyprland.enable osConfig.programs [ ./hyprland.nix ];
|
||||||
|
}
|
||||||
11
modules/home/nyxerinys/linux/hyprland.nix
Normal file
11
modules/home/nyxerinys/linux/hyprland.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{ inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
wayland.windowManager.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
# set the Hyprland and XDPH packages to null to use the ones from the NixOS module
|
||||||
|
package = null;
|
||||||
|
portalPackage = null;
|
||||||
|
systemd.variables = ["--all"];
|
||||||
|
};
|
||||||
|
}
|
||||||
5
modules/home/nyxerinys/mac/default.nix
Normal file
5
modules/home/nyxerinys/mac/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue