Skip to content
Snippets Groups Projects
Commit 058bb4bb authored by Jens Nolte's avatar Jens Nolte
Browse files

Cleanup

parent 0c38c5d5
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@ let
layerImports = map layerPath dotfilesConfig.layers;
normalSystemConfiguration = (lib.attrsets.optionalAttrs (!isIso) {
# TODO move to machine configuration?
imports = [ (path + "/hardware-configuration.nix") ];
# Bootloader
boot.loader.systemd-boot.enable = (installResult.bootloader == "efi");
......
......@@ -8,28 +8,12 @@ with flakeInputs.nixpkgs.lib;
let
finalFlakeInputs = flakeInputs // extraFlakeInputs;
finalFlakeOutputs = flakeOutputs // extraFlakeOutputs;
# defaultChannel :: path (channel)
#defaultChannel = loadChannel "nixos-unstable";
# helpers :: { *: ? }
helpers = import ./helpers.nix;
# channelsDir :: path
#channelsDir = ./channels;
# loadChannel :: string -> path (channel)
#loadChannel = name: import (channelsDir + "/${name}") name;
# allChannels :: { *: path (channel) }
#allChannels = with helpers; keysToAttrs loadChannel (readFilterDir (filterAnd [(not filterDirHidden) filterDirDirs]) channelsDir);
# getMachineChannel :: string -> path
getMachineChannel = _: finalFlakeInputs.nixpkgs;
#getMachineChannel = { name, path }:
# let
# channelFile = path + "/channel.nix";
# in
# if (pathExists channelFile)
# then (import channelFile) allChannels
# else defaultChannel;
# machineChannels :: { *: path }
machineChannels = withMachines getMachineChannel;
machinesDirContents = readDir machinesDir;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment