Missing some source file?
This commit is contained in:
parent
c3fe6c59e3
commit
b5f62d0459
14
flake.lock
14
flake.lock
|
@ -26,7 +26,7 @@
|
|||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"narHash": "sha256-LbajVWkqSpZt2SW7tGqxIn391hCT02AyokxFuNyA/4w=",
|
||||
"narHash": "sha256-28zT4n5SyxcE9KI4b6RowZyMuzlZ6FIw2KE6xX8OTnA=",
|
||||
"path": "../fudo-hosts",
|
||||
"type": "path"
|
||||
},
|
||||
|
@ -37,11 +37,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1628427351,
|
||||
"narHash": "sha256-WuZUIQ07AvRw+T9wvQ3qFf8MXmKZ+ktZz9drNgWXDbs=",
|
||||
"lastModified": 1629033443,
|
||||
"narHash": "sha256-Vo3TvQvR5hsd3incx/xOt6GFgTm651CYVauHS/irOFo=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "348bc5de8bca09c624f5c4975f538684da4713d2",
|
||||
"rev": "8ac785da9843aa110caeed6c912875e46a415a11",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -52,11 +52,11 @@
|
|||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1628427351,
|
||||
"narHash": "sha256-WuZUIQ07AvRw+T9wvQ3qFf8MXmKZ+ktZz9drNgWXDbs=",
|
||||
"lastModified": 1629033443,
|
||||
"narHash": "sha256-Vo3TvQvR5hsd3incx/xOt6GFgTm651CYVauHS/irOFo=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "348bc5de8bca09c624f5c4975f538684da4713d2",
|
||||
"rev": "8ac785da9843aa110caeed6c912875e46a415a11",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
17
flake.nix
17
flake.nix
|
@ -10,15 +10,17 @@
|
|||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, hosts, home-manager, ... }:
|
||||
outputs = { nixpkgs, hosts, home-manager, ... }: with builtins;
|
||||
{
|
||||
nixosConfigurations = listToAttrs (map (hostname:
|
||||
let
|
||||
pkgs = import nixpkgs { };
|
||||
lib = nixpkgs.lib;
|
||||
hostOpts = hosts.host-configs.${hostname};
|
||||
pkgs = import nixpkgs { system = hostOpts.arch; };
|
||||
|
||||
in {
|
||||
nixConfigurations = lib.mapAttrs (hostname: hostOpts:
|
||||
lib.nixosSystem {
|
||||
system = hostOpts.platform;
|
||||
name = hostname;
|
||||
value = pkgs.lib.nixosSystem {
|
||||
system = hostOpts.arch;
|
||||
modules = [
|
||||
(import ./initialize.nix {
|
||||
hostname = hostname;
|
||||
|
@ -27,6 +29,7 @@
|
|||
include-secrets = true;
|
||||
})
|
||||
];
|
||||
}) hosts.host-configs;
|
||||
};
|
||||
}) (attrNames hosts.host-configs));
|
||||
};
|
||||
}
|
||||
|
|
|
@ -49,11 +49,11 @@ let
|
|||
redshift
|
||||
signal-desktop
|
||||
spotify
|
||||
steam-with-pipewire
|
||||
steam-with-pipewire.run
|
||||
steamPackages.steamcmd
|
||||
steamPackages.steam-fonts
|
||||
steamPackages.steam-runtime
|
||||
# steam-with-pipewire
|
||||
# steam-with-pipewire.run
|
||||
# steamPackages.steamcmd
|
||||
# steamPackages.steam-fonts
|
||||
# steamPackages.steam-runtime
|
||||
xclip
|
||||
];
|
||||
|
||||
|
|
|
@ -8,14 +8,13 @@ in {
|
|||
./lib
|
||||
./config
|
||||
./packages
|
||||
|
||||
"${home-manager-package}/nixos"
|
||||
] ++ pkgs.lib.optional host-config.nixos-system [
|
||||
(./. + "/config/hardware/${hostname}.nix")
|
||||
(./. + "/config/host-config/${hostname}.nix")
|
||||
(./. + "/config/profile-config/${host-config.profile}.nix")
|
||||
(./. + "/config/domain-config/${host-config.domain}.nix")
|
||||
(./. + "/config/site-config/${host-config.site}.nix")
|
||||
|
||||
"${home-manager-package}/nixos"
|
||||
];
|
||||
|
||||
config = {
|
||||
|
|
|
@ -138,10 +138,16 @@ let
|
|||
default = false;
|
||||
};
|
||||
|
||||
platform = mkOption {
|
||||
nixos-system = mkOption {
|
||||
type = bool;
|
||||
description = "Whether the host is a NixOS system.";
|
||||
default = true;
|
||||
};
|
||||
|
||||
arch = mkOption {
|
||||
type = str;
|
||||
description = "System platform of the host.";
|
||||
default = "x86_64";
|
||||
description = "System architecture of the system.";
|
||||
default = "x86_64-linux";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# NOTE TO FUTURE SELF: Nixpkgs Flatpak is currently only at 10.2, which doesn't
|
||||
# allow nested containers...no Steam.
|
||||
|
||||
{ lib, stdenv, fetchurl, fetchpatch, autoreconfHook, docbook_xml_dtd_45
|
||||
, docbook-xsl-nons, which, libxml2, gobject-introspection, gtk-doc, intltool
|
||||
, libxslt, pkg-config, xmlto, appstream-glib, substituteAll, bison
|
||||
|
|
Loading…
Reference in New Issue