working flake? wtf?

This commit is contained in:
Julian Sutter 2023-01-04 23:31:15 -08:00
parent 2bd5b7664d
commit 7fa1d3a217
2 changed files with 17 additions and 30 deletions

View file

@ -1,30 +1,18 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.03";
description = "Julian's system configuration";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }: {
nixosConfigurations.container = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules =
[ ({ pkgs, ... }: {
boot.isContainer = true;
# Let 'nixos-version --json' know about the Git revision
# of this flake.
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
# Network configuration.
networking.useDHCP = false;
networking.firewall.allowedTCPPorts = [ 80 ];
# Enable a web server.
services.httpd = {
enable = true;
adminAddr = "morty@example.org";
};
})
];
nixosConfigurations = {
framework = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./configuration.nix ];
};
};
};
}