Compare commits
3 commits
37dcf27b05
...
1510694a4a
| Author | SHA1 | Date | |
|---|---|---|---|
| 1510694a4a | |||
| 6ca883ca0a | |||
| 749476efcc |
4 changed files with 64 additions and 42 deletions
17
flake.lock
generated
17
flake.lock
generated
|
|
@ -159,6 +159,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-flatpak": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1699822045,
|
||||||
|
"narHash": "sha256-ZKKbXcf7UXirQokVYNF0gN5AulWPDPsXXce6KolGr+g=",
|
||||||
|
"owner": "gmodena",
|
||||||
|
"repo": "nix-flatpak",
|
||||||
|
"rev": "bb4a08e975c5a64a909cc42de31cb02408c9bda8",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "gmodena",
|
||||||
|
"ref": "main",
|
||||||
|
"repo": "nix-flatpak",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nix-github-actions": {
|
"nix-github-actions": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
@ -312,6 +328,7 @@
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"home-manager-unstable": "home-manager-unstable",
|
"home-manager-unstable": "home-manager-unstable",
|
||||||
"jovian": "jovian",
|
"jovian": "jovian",
|
||||||
|
"nix-flatpak": "nix-flatpak",
|
||||||
"nix-impermanence": "nix-impermanence",
|
"nix-impermanence": "nix-impermanence",
|
||||||
"nix-index-db": "nix-index-db",
|
"nix-index-db": "nix-index-db",
|
||||||
"nix-index-db-unstable": "nix-index-db-unstable",
|
"nix-index-db-unstable": "nix-index-db-unstable",
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,9 @@
|
||||||
vscode-extensions = {
|
vscode-extensions = {
|
||||||
url = "github:nix-community/nix-vscode-extensions";
|
url = "github:nix-community/nix-vscode-extensions";
|
||||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
nix-flatpak.url = github:gmodena/nix-flatpak/main;
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { ... } @inputs: with inputs; {
|
outputs = { ... } @inputs: with inputs; {
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,12 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, flakeSelf, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
||||||
|
|
||||||
/*
|
home-manager = {
|
||||||
Create systemd service that adds flathub after getting network
|
sharedModules = [{ imports = [ flakeSelf.inputs.nix-flatpak.homeManagerModules.nix-flatpak ]; }];
|
||||||
This adds it automatically, which avoids the whack ass way I was
|
users.toast = {
|
||||||
doing that before
|
services.flatpak.packages = [ "tv.plex.PlexDesktop" ];
|
||||||
*/
|
};
|
||||||
systemd.services.flathub-add = {
|
|
||||||
description = "Add flathub repo to system flatpak install";
|
|
||||||
script = "${pkgs.flatpak}/bin/flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo";
|
|
||||||
serviceConfig.Type = "oneshot";
|
|
||||||
wantedBy = [ "network-online.target" ];
|
|
||||||
# Run after networking is working
|
|
||||||
after = [ "NetworkManager-wait-online.service" ];
|
|
||||||
restartIfChanged = false;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -85,36 +85,47 @@ in
|
||||||
environment.systemPackages = [ breezeTint lookAndFeel plasmaDefaults ];
|
environment.systemPackages = [ breezeTint lookAndFeel plasmaDefaults ];
|
||||||
|
|
||||||
# Plasma configs should be on all users
|
# Plasma configs should be on all users
|
||||||
home-manager.sharedModules = [{
|
home-manager.sharedModules = [
|
||||||
imports = [ flakeSelf.inputs.plasma-manager.homeManagerModules.plasma-manager ];
|
(
|
||||||
gtk = {
|
{ config, ... }:
|
||||||
enable = true;
|
let gtk2rc = "${config.xdg.configHome}/gtk-2.0/gtkrc"; in
|
||||||
cursorTheme = { package = pkgs.breeze-qt5; name = "breeze_cursors"; };
|
{
|
||||||
iconTheme = { package = pkgs.breeze-icons; name = "breeze-dark"; };
|
gtk.gtk2.configLocation = gtk2rc;
|
||||||
theme = { package = pkgs.breeze-gtk; name = "Breeze"; };
|
# Kde has an annoying habit of overwriting the gtk2 config file
|
||||||
# Gtk2 doesn't have a dark mode, so I just tell gtk 3 and 4 to use the dark variant
|
home.file."${gtk2rc}".force = true;
|
||||||
gtk3.extraConfig.gtk-application-prefer-dark-theme = true;
|
}
|
||||||
gtk4.extraConfig.gtk-application-prefer-dark-theme = true;
|
)
|
||||||
};
|
{
|
||||||
programs.plasma = {
|
imports = [ flakeSelf.inputs.plasma-manager.homeManagerModules.plasma-manager ];
|
||||||
enable = true;
|
gtk = {
|
||||||
workspace.clickItemTo = "select";
|
enable = true;
|
||||||
shortcuts = {
|
cursorTheme = { package = pkgs.breeze-qt5; name = "breeze_cursors"; };
|
||||||
"kwin" = {
|
iconTheme = { package = pkgs.breeze-icons; name = "breeze-dark"; };
|
||||||
"Switch One Desktop to the Left" = [ "Meta+Ctrl+Left" ];
|
theme = { package = pkgs.breeze-gtk; name = "Breeze"; };
|
||||||
"Switch One Desktop to the Right" = [ "Meta+Ctrl+Right" ];
|
# Gtk2 doesn't have a dark mode, so I just tell gtk 3 and 4 to use the dark variant
|
||||||
};
|
gtk3.extraConfig.gtk-application-prefer-dark-theme = true;
|
||||||
|
gtk4.extraConfig.gtk-application-prefer-dark-theme = true;
|
||||||
};
|
};
|
||||||
configFile = {
|
programs.plasma = {
|
||||||
"kwinrc" = {
|
enable = true;
|
||||||
"Desktops" = {
|
workspace.clickItemTo = "select";
|
||||||
"Number" = 2;
|
shortcuts = {
|
||||||
"Rows" = 1;
|
"kwin" = {
|
||||||
|
"Switch One Desktop to the Left" = [ "Meta+Ctrl+Left" ];
|
||||||
|
"Switch One Desktop to the Right" = [ "Meta+Ctrl+Right" ];
|
||||||
};
|
};
|
||||||
"TabBox"."LayoutName" = "thumbnail_grid";
|
|
||||||
};
|
};
|
||||||
"plasmanotifyrc"."Notifications"."NormalAlwaysOnTop" = true;
|
configFile = {
|
||||||
|
"kwinrc" = {
|
||||||
|
"Desktops" = {
|
||||||
|
"Number" = 2;
|
||||||
|
"Rows" = 1;
|
||||||
|
};
|
||||||
|
"TabBox"."LayoutName" = "thumbnail_grid";
|
||||||
|
};
|
||||||
|
"plasmanotifyrc"."Notifications"."NormalAlwaysOnTop" = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
}];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue