deleted generated files
This commit is contained in:
+7
-8
@@ -772,14 +772,14 @@ in {
|
||||
#+END_SRC
|
||||
|
||||
** =generated/modules/apps/flatpaks.nix=
|
||||
This will import all packages listed in ../../../assets/system/apps/flatpaks.conf
|
||||
This will import all packages listed in ../../assets/system/apps/flatpaks.conf
|
||||
#+BEGIN_SRC nix :tangle generated/modules/apps/flatpaks.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ lib, pkgs, config, ... }:
|
||||
|
||||
let
|
||||
moduleName = "flatpaks";
|
||||
username = config.defaultUser or "henrov";
|
||||
flatpakConfPath = ./assets/system/apps/flatpaks.conf;
|
||||
flatpakConfPath = ../../../assets/system/apps/flatpaks.conf;
|
||||
|
||||
enableProgram = config.enableFlatpaks or false;
|
||||
in
|
||||
@@ -787,10 +787,9 @@ in
|
||||
# Top-level toggle for this module
|
||||
options.enableFlatpaks = lib.mkEnableOption "Enable automatic Flatpak installation";
|
||||
|
||||
# Wrap all configuration safely
|
||||
config = lib.mkIf enableProgram {
|
||||
|
||||
# myApps container (just assign in config, do NOT declare options.myApps)
|
||||
# Assign myApps.flatpaks inside config only
|
||||
myApps = {
|
||||
flatpaks = {
|
||||
enable = true;
|
||||
@@ -803,11 +802,11 @@ in
|
||||
# Deploy the conf file
|
||||
environment.etc."flatpak/flatpaks.conf".source = flatpakConfPath;
|
||||
|
||||
# Enable flatpak service
|
||||
# Enable flatpak
|
||||
services.flatpak.enable = true;
|
||||
xdg.portal.enable = true;
|
||||
xdg.portal.enable = true;
|
||||
|
||||
# Systemd service for installing listed flatpaks
|
||||
# Systemd service to sync flatpaks
|
||||
systemd.services.flatpak-sync = {
|
||||
description = "Install Flatpak apps listed in flatpaks.conf";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
@@ -825,7 +824,7 @@ in
|
||||
flatpak remote-add --system --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||
fi
|
||||
|
||||
# Install apps listed in conf
|
||||
# Install apps from conf
|
||||
while read -r app; do
|
||||
app=$(echo "$app" | sed 's/#.*//;s/^[[:space:]]*//;s/[[:space:]]*$//')
|
||||
if [[ -n "$app" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user