mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-12 06:19:00 +00:00
profiles/system: update config
This commit is contained in:
parent
2c17d207b6
commit
c53618add6
@ -31,18 +31,32 @@ in {
|
|||||||
services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
||||||
xdg.portal.enable = true;
|
xdg.portal.enable = true;
|
||||||
|
|
||||||
# Install the usual Flatpak remotes.
|
environment.etc =
|
||||||
systemd.services.install-flatpak-remotes = {
|
let
|
||||||
after = [ "network.target" ];
|
urls = {
|
||||||
path = [ pkgs.flatpak ];
|
"flathub" = {
|
||||||
script = ''
|
url = "https://flathub.org/repo/flathub.flatpakrepo";
|
||||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
sha256 = "sha256:0fm0zvlf4fipqfhazx3jdx1d8g0mvbpky1rh6riy3nb11qjxsw9k";
|
||||||
flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
|
|
||||||
flatpak remote-add --if-not-exists gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo
|
|
||||||
flatpak remote-add --if-not-exists kdeapps https://distribute.kde.org/kdeapps.flatpakrepo
|
|
||||||
'';
|
|
||||||
serviceConfig.Type = "oneshot";
|
|
||||||
};
|
};
|
||||||
|
"flathub-beta" = {
|
||||||
|
url = "https://flathub.org/beta-repo/flathub-beta.flatpakrepo";
|
||||||
|
sha256 = "sha256:01kj1yza51dd4vcr04j49lx0mnivldpzxyny4zq3jilxkwyawb2q";
|
||||||
|
};
|
||||||
|
"gnome-nightly" = {
|
||||||
|
url = "https://nightly.gnome.org/gnome-nightly.flatpakrepo";
|
||||||
|
sha256 = "sha256:10y9a50m2jz8p3avd8kqw5i7lyl71xwmc2mnrdicv0mgj1b6wndc";
|
||||||
|
};
|
||||||
|
"kdeapps" = {
|
||||||
|
url = "https://distribute.kde.org/kdeapps.flatpakrepo";
|
||||||
|
sha256 = "sha256:18kscw44ff6bjx1abvffzk0js01w51vgh4h0rwpa76hc0r0ps8bl";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
lib.mapAttrs'
|
||||||
|
(name: remote: lib.nameValuePair "flatpak/remotes.d/${name}.flatpakrepo" {
|
||||||
|
source = pkgs.fetchurl remote;
|
||||||
|
})
|
||||||
|
urls;
|
||||||
|
|
||||||
programs.extra-container.enable = true;
|
programs.extra-container.enable = true;
|
||||||
|
|
||||||
@ -73,6 +87,7 @@ in {
|
|||||||
# this is my preferred way of managing anyways.
|
# this is my preferred way of managing anyways.
|
||||||
wireplumber.enable = true;
|
wireplumber.enable = true;
|
||||||
|
|
||||||
|
# Enable all the bi-...bridges.
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
alsa.support32Bit = true;
|
alsa.support32Bit = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
@ -156,10 +171,7 @@ in {
|
|||||||
services.clean-log = {
|
services.clean-log = {
|
||||||
description = "Weekly log cleanup";
|
description = "Weekly log cleanup";
|
||||||
documentation = [ "man:journalctl(1)" ];
|
documentation = [ "man:journalctl(1)" ];
|
||||||
serviceConfig = {
|
script = "${pkgs.systemd}/bin/journalctl --vacuum-time=30d";
|
||||||
Type = "oneshot";
|
|
||||||
ExecStart = "${pkgs.systemd}/bin/journalctl --vacuum-time=30d";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
timers.clean-log = {
|
timers.clean-log = {
|
||||||
@ -179,6 +191,7 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
flake = "github:foo-dogsquared/nixos-config";
|
flake = "github:foo-dogsquared/nixos-config";
|
||||||
allowReboot = true;
|
allowReboot = true;
|
||||||
|
persistent = true;
|
||||||
rebootWindow = {
|
rebootWindow = {
|
||||||
lower = "22:00";
|
lower = "22:00";
|
||||||
upper = "00:00";
|
upper = "00:00";
|
||||||
|
Loading…
Reference in New Issue
Block a user