From 843310e8b8012b71370cd713ac8225f1727646e1 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 28 Feb 2024 18:49:11 +0800 Subject: [PATCH] nixos/profiles/desktop: make the configuration easily retrievable --- configs/flake-parts/nixos.nix | 8 -------- modules/nixos/profiles/desktop/default.nix | 3 +++ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/configs/flake-parts/nixos.nix b/configs/flake-parts/nixos.nix index 3e5749f5..9cbba452 100644 --- a/configs/flake-parts/nixos.nix +++ b/configs/flake-parts/nixos.nix @@ -95,14 +95,6 @@ defaultNixConf ../../modules/nixos/profiles/generic.nix ../../modules/nixos/profiles/nix-conf.nix - - # The NixOS module that came from flake-parts. - ({ config, lib, ... }: { - # Set the NixOS system at the time of evaluation for convenience. Take - # note, we assume that you develop your NixOS configuration somewhere - # not in `/etc/nixos`. - environment.etc.nixos.source = inputs.self; - }) ]; }; diff --git a/modules/nixos/profiles/desktop/default.nix b/modules/nixos/profiles/desktop/default.nix index 2219df0d..78625c87 100644 --- a/modules/nixos/profiles/desktop/default.nix +++ b/modules/nixos/profiles/desktop/default.nix @@ -7,4 +7,7 @@ ./audio.nix ./hardware.nix ]; + + # We'll just have the configuration stored as a backup. + environment.etc.nixos.source = ../../../../..; }