This commit is contained in:
cnst
2024-07-31 09:06:39 +02:00
parent 80f2d6797d
commit 920771ce28
11 changed files with 47 additions and 65 deletions

18
flake.lock generated
View File

@@ -159,11 +159,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1722345621, "lastModified": 1722381373,
"narHash": "sha256-3ZZolUAhDElGd1fZyMmXniodfcjQeMueGlUxKCq7Id4=", "narHash": "sha256-BKx7uzHo3WyCmjjEWic3UuYDfq5i41ToCiHRlA7xZzU=",
"owner": "nix-community", "owner": "nix-community",
"repo": "flake-firefox-nightly", "repo": "flake-firefox-nightly",
"rev": "b2a9f7632877e013f4ee7f7ff53f3266b1ce5057", "rev": "480f9615514981d2e1c6d634e878d6384ae73bc2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -554,11 +554,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1722321190, "lastModified": 1722407237,
"narHash": "sha256-WeVWVRqkgrbLzmk6FfJoloJ7Xe7HWD27Pv950IUG2kI=", "narHash": "sha256-wcpVHUc2nBSSgOM7UJSpcRbyus4duREF31xlzHV5T+A=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "4fcd54df7cbb1d79cbe81209909ee8514d6b17a4", "rev": "58cef3796271aaeabaed98884d4abaab5d9d162d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -900,11 +900,11 @@
"umu": "umu" "umu": "umu"
}, },
"locked": { "locked": {
"lastModified": 1722241867, "lastModified": 1722388137,
"narHash": "sha256-//9wuNlkw5JZU2C3ELs8TtAtZE5HWVPtcM6fmgk2IUA=", "narHash": "sha256-vIZC9sPCNJCYuT5k9hV7Ag8AnXDyjQfsYUZCnG2y3vs=",
"owner": "fufexan", "owner": "fufexan",
"repo": "nix-gaming", "repo": "nix-gaming",
"rev": "7a07614bba2b5674b4f3b5c4d7baf80e71a55406", "rev": "5327de38599220609e99ade12ba53f769bd2fc6f",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -1,30 +0,0 @@
{
lib,
self,
inputs,
...
}: {
imports = [
# inputs.matugen.nixosModules.default
# inputs.nix-index-db.hmModules.nix-index
# inputs.tailray.homeManagerModules.default
# self.nixosModules.theme
];
home = {
username = "cnst";
homeDirectory = "/home/cnst";
stateVersion = "23.11";
extraOutputsToInstall = ["doc" "devdoc"];
};
# disable manuals as nmd fails to build often
manual = {
html.enable = false;
json.enable = false;
manpages.enable = false;
};
# let HM manage itself when in standalone mode
programs.home-manager.enable = true;
}

View File

@@ -8,10 +8,10 @@
systemd = { systemd = {
variables = ["--all"]; variables = ["--all"];
extraCommands = [ # extraCommands = [
"systemctl --user stop graphical-session.target" # "systemctl --user stop graphical-session.target"
"systemctl --user start hyprland-session.target" # "systemctl --user start hyprland-session.target"
]; # ];
}; };
}; };
} }

View File

@@ -6,6 +6,12 @@
]; ];
env = [ env = [
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1" "QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
"XDG_SESSION_DESKTOP, Hyprland"
"GDK_BACKEND, wayland"
"SDL_VIDEODRIVER, wayland"
"QT_QPA_PLATFORM, wayland;xcb"
]; ];
input = { input = {

View File

@@ -37,6 +37,7 @@
"center, ^(xarchiver)$" "center, ^(xarchiver)$"
"float, ^(xarchiver)$" "float, ^(xarchiver)$"
"float, ^(org.gnome.FileRoller)$" "float, ^(org.gnome.FileRoller)$"
"float, ^(org.freedesktop.impl.portal.desktop.kde)$"
]; ];
}; };
} }

View File

@@ -3,7 +3,7 @@
exec-once = [ exec-once = [
# STARTUP # STARTUP
# exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
"systemctl --user start polkit-gnome-authentication-agent-1" # "systemctl --user start polkit-gnome-authentication-agent-1"
# exec-once = lxqt-policykit-agent & # exec-once = lxqt-policykit-agent &
"waybar" "waybar"
"pamixer --set-volume 50" "pamixer --set-volume 50"

View File

@@ -16,18 +16,6 @@
templates = "${config.home.homeDirectory}/documents/templates"; templates = "${config.home.homeDirectory}/documents/templates";
videos = "${config.home.homeDirectory}/media/videos"; videos = "${config.home.homeDirectory}/media/videos";
}; };
portal = {
enable = true;
xdgOpenUsePortal = true;
config = {
common.default = ["gtk"];
hyprland.default = ["gtk" "hyprland"];
};
extraPortals = [
pkgs.xdg-desktop-portal-gtk
];
};
}; };
dconf = { dconf = {
settings = { settings = {

View File

@@ -10,11 +10,15 @@
# ../../core/services/power-monitor # ../../core/services/power-monitor
]; ];
home = { home = {
username = "cnst";
homeDirectory = "/home/cnst";
stateVersion = "23.11";
extraOutputsToInstall = ["doc" "devdoc"];
packages = with pkgs; [ packages = with pkgs; [
# misc.gui # misc.gui
virt-manager virt-manager
xfce.thunar xfce.thunar
nautilus
# misc.tui # misc.tui
ranger ranger
@@ -36,10 +40,15 @@
BROWSER = "firefox"; BROWSER = "firefox";
EDITOR = "nvim"; EDITOR = "nvim";
TERM = "foot"; TERM = "foot";
};
};
# disable manuals as nmd fails to build often
manual = {
html.enable = false;
json.enable = false;
manpages.enable = false;
};
QT_QPA_PLATFORM = "wayland"; # let HM manage itself when in standalone mode
SDL_VIDEODRIVER = "wayland"; programs.home-manager.enable = true;
XDG_SESSION_TYPE = "wayland";
};
};
} }

View File

@@ -9,17 +9,14 @@
homeImports = { homeImports = {
"cnst@cnix" = [ "cnst@cnix" = [
../core ../core
../cnst.nix
./cnst ./cnst
]; ];
"adam@adampad" = [ "adam@adampad" = [
../core ../core
../adam.nix
./adam ./adam
]; ];
"toothpick@toothpc" = [ "toothpick@toothpc" = [
../core ../core
../toothpick.nix
./toothpick ./toothpick
]; ];
}; };

View File

@@ -1,7 +1,17 @@
{inputs, ...}: { {
inputs,
lib,
pkgs,
...
}: {
imports = [ imports = [
inputs.hyprland.nixosModules.default inputs.hyprland.nixosModules.default
]; ];
environment.variables.NIXOS_OZONE_WL = "1"; environment.variables.NIXOS_OZONE_WL = "1";
programs.hyprland.enable = true; programs.hyprland.enable = true;
xdg.portal = {
enable = true;
config.common.default = lib.mkForce ["hyprland" "kde"];
extraPortals = [pkgs.xdg-desktop-portal-kde];
};
} }

View File

@@ -24,6 +24,7 @@
settings = { settings = {
auto-optimise-store = true; auto-optimise-store = true;
builders-use-substitutes = true; builders-use-substitutes = true;
warn-dirty = false;
experimental-features = ["nix-command" "flakes"]; experimental-features = ["nix-command" "flakes"];
flake-registry = "/etc/nix/registry.json"; flake-registry = "/etc/nix/registry.json";