mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
Test this base config
This commit is contained in:
parent
62abad5c50
commit
9f2cacd5b1
2 changed files with 35 additions and 0 deletions
24
flake.nix
Normal file
24
flake.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
description = "Entry point for NixOS";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
home-manager.url = "github:nix-community/home-manager";
|
||||||
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = inputs: let
|
||||||
|
system = "x86_64-linux";
|
||||||
|
inherit (inputs.nixpkgs) lib;
|
||||||
|
|
||||||
|
pkgs = import inputs.nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
ns = host: (lib.nixosSystem {
|
||||||
|
specialArgs = {inherit pkgs inputs;};
|
||||||
|
modules = [(./hosts + "/${host}")];
|
||||||
|
});
|
||||||
|
in {nixosConfigurations = lib.attrsets.genAttrs ["remote"] ns;};
|
||||||
|
}
|
||||||
11
hosts/remote/default.nix
Normal file
11
hosts/remote/default.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./hardware-configuration.nix
|
||||||
|
];
|
||||||
|
networking.hostName = "nixos-remote";
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.git
|
||||||
|
pkgs.vim
|
||||||
|
pkgs.wget
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue