Fix indentation
This commit is contained in:
108
flake.nix
108
flake.nix
@@ -1,70 +1,70 @@
|
|||||||
{
|
{
|
||||||
description = "My System Configs";
|
description = "My System Configs";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
i3utils.url = "git+file:///home/daniel/go/src/i3utils";
|
i3utils.url = "git+file:///home/daniel/go/src/i3utils";
|
||||||
|
|
||||||
home-manager.url = "github:nix-community/home-manager/master";
|
home-manager.url = "github:nix-community/home-manager/master";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, i3utils, ... }:
|
outputs = { nixpkgs, home-manager, i3utils, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
|
|
||||||
hostSystem = { hostname }: lib.nixosSystem {
|
hostSystem = { hostname }: lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/${hostname}/configuration.nix
|
./hosts/${hostname}/configuration.nix
|
||||||
({ pkgs, ... }: {
|
({ pkgs, ... }: {
|
||||||
nixpkgs.overlays = [ i3utils.overlay ];
|
nixpkgs.overlays = [ i3utils.overlay ];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
mkUserConf = { hostname, extraSauce ? [] }:
|
mkUserConf = { hostname, extraSauce ? [] }:
|
||||||
home-manager.lib.homeManagerConfiguration {
|
home-manager.lib.homeManagerConfiguration {
|
||||||
inherit system pkgs;
|
inherit system pkgs;
|
||||||
|
|
||||||
username = "daniel";
|
username = "daniel";
|
||||||
homeDirectory = "/home/daniel";
|
homeDirectory = "/home/daniel";
|
||||||
configuration = {
|
configuration = {
|
||||||
imports = [
|
imports = [
|
||||||
./user/daniel/home.nix
|
./user/daniel/home.nix
|
||||||
({ pkgs, ... }: {
|
({ pkgs, ... }: {
|
||||||
nixpkgs.overlays = [ i3utils.overlay ];
|
nixpkgs.overlays = [ i3utils.overlay ];
|
||||||
})
|
})
|
||||||
] ++ extraSauce;
|
] ++ extraSauce;
|
||||||
};
|
};
|
||||||
stateVersion = "21.05";
|
stateVersion = "21.05";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
in {
|
in {
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
daniel-dingbox = mkUserConf { hostname = "dingbox"; };
|
daniel-dingbox = mkUserConf { hostname = "dingbox"; };
|
||||||
daniel-miniding = mkUserConf {
|
daniel-miniding = mkUserConf {
|
||||||
hostname = "miniding";
|
hostname = "miniding";
|
||||||
extraSauce = [ ./user/host-specific/miniding ];
|
extraSauce = [ ./user/host-specific/miniding ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
dingbox = hostSystem { hostname = "dingbox"; };
|
dingbox = hostSystem { hostname = "dingbox"; };
|
||||||
miniding = hostSystem { hostname = "miniding"; };
|
miniding = hostSystem { hostname = "miniding"; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user