profiles/system: refactor to remove inputs attr

This is to reduce burden in case I want to support importing my
config through traditional channels.
This commit is contained in:
Gabriel Arazas 2022-07-13 19:10:15 +08:00
parent 2572ccae12
commit 4708d7acc2
2 changed files with 3 additions and 2 deletions

View File

@ -115,6 +115,7 @@
imports = [
inputs.agenix.nixosModules.age
inputs.home-manager.nixosModules.home-manager
inputs.nix-ld.nixosModules.nix-ld
];
# Bleeding edge, baybee!

View File

@ -1,7 +1,7 @@
# This is where extra desktop goodies can be found.
# As a note, this is not where you set the aesthetics of your graphical sessions.
# That can be found in the `themes` module.
{ inputs, config, options, lib, pkgs, ... }:
{ config, options, lib, pkgs, ... }:
let cfg = config.profiles.system;
in {
@ -25,7 +25,6 @@ in {
};
};
imports = [ inputs.nix-ld.nixosModules.nix-ld ];
config = lib.mkIf cfg.enable (lib.mkMerge [
({
# Enable Flatpak for additional options for installing desktop applications.
@ -46,6 +45,7 @@ in {
fonts.fontconfig.enable = true;
# Run unpatched binaries with these!
programs.nix-ld.enable = true;
environment.systemPackages = with pkgs; [
nix-alien
nix-index