Live : Update config.

This commit is contained in:
Dmitry Voronin 2024-02-20 20:43:34 +03:00
parent 4b8ed0e773
commit 5acd3750e0
5 changed files with 23 additions and 14 deletions

View file

@ -112,6 +112,8 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix" "${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
{ networking.networkmanager.enable = nixpkgs.lib.mkForce false; }
({ pkgs, ... }: { boot.kernelPackages = nixpkgs.lib.mkForce pkgs.linuxPackages; })
./module/Gnome.nix ./module/Gnome.nix
]; ];
}; };

View file

@ -1,6 +1,3 @@
{ config, pkgs, ... }: { config, pkgs, ... }: {
imports = [ ];
{
imports = [
];
} }

View file

@ -1,4 +1,2 @@
{ ... }: { ... }: {
{
} }

View file

@ -1,5 +1,19 @@
{ ... }: { ... }: let
list = "~/.config/linux/Flatpak.txt";
{ in {
# Enable Flatpaks.
services.flatpak.enable = true; services.flatpak.enable = true;
# Bootstrap apps on boot.
systemd.services.flatpakinstall = {
description = "Install Flatpak apps.";
wantedBy = [ "graphical-session-pre.target" ];
wants = [ "dotfiles.service" ];
after = [ "dotfiles.service" ];
serviceConfig.Type = "oneshot";
script = ''
${pkgs.flatpak}/bin/flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
for app in $(cat ${list} | cut -f2)
'';
};
} }

View file

@ -1,6 +1,4 @@
{ pkgs, ... }: { pkgs, ... }: {
{
# Use latest kernel. # Use latest kernel.
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;