Live : Update config.
This commit is contained in:
parent
4b8ed0e773
commit
5acd3750e0
|
@ -112,6 +112,8 @@
|
|||
system = "x86_64-linux";
|
||||
modules = [
|
||||
"${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
|
||||
];
|
||||
};
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
];
|
||||
{ config, pkgs, ... }: {
|
||||
imports = [ ];
|
||||
}
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
{ ... }: {
|
||||
}
|
||||
|
|
|
@ -1,5 +1,19 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
{ ... }: let
|
||||
list = "~/.config/linux/Flatpak.txt";
|
||||
in {
|
||||
# Enable Flatpaks.
|
||||
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)
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
{ pkgs, ... }: {
|
||||
# Use latest kernel.
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
|
|
Reference in a new issue