Self-host your own digital island
1{ 2 inputs = { 3 nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; 4 eilean.url ="github:RyanGibb/eilean-nix/main"; 5 # replace the below line to manage the Nixpkgs instance yourself 6 nixpkgs.follows = "eilean/nixpkgs"; 7 #eilean.inputs.nixpkgs.follows = "nixpkgs"; 8 }; 9 10 outputs = { self, nixpkgs, eilean, ... }@inputs: 11 let hostname = "eilean"; in 12 rec { 13 nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem { 14 system = null; 15 pkgs = null; 16 modules = [ 17 ./configuration.nix 18 eilean.nixosModules.default 19 { 20 networking.hostName = hostname; 21 # pin nix command's nixpkgs flake to the system flake to avoid unnecessary downloads 22 nix.registry.nixpkgs.flake = nixpkgs; 23 # record git revision (can be queried with `nixos-version --json) 24 system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev; 25 } 26 ]; 27 }; 28 }; 29 }