Basic configuration for nki-home
nki-home tinc working Don't route tinc through vpn Don't do it lol Integrate home-manager Merge nki-home/flake into main flake Add MacOS clipboard compat Make VPN input a secret
This commit is contained in:
parent
1c3fd3f47b
commit
466f5f1e90
15 changed files with 496 additions and 32 deletions
47
flake.nix
47
flake.nix
|
@ -1,32 +1,59 @@
|
|||
{
|
||||
description = "nki's darwin system";
|
||||
description = "nki's systems";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/21.05";
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
darwin.url = "github:lnl7/nix-darwin/master";
|
||||
darwin.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager-unstable.url = "github:nix-community/home-manager";
|
||||
home-manager-21_05.url = "github:nix-community/home-manager/release-21.05";
|
||||
sops-nix.url = "github:Mic92/sops-nix";
|
||||
nur.url = "github:nix-community/NUR";
|
||||
};
|
||||
|
||||
outputs = { self, darwin, nixpkgs, nixpkgs-unstable, home-manager }: {
|
||||
outputs = { self, darwin, nixpkgs, nixpkgs-unstable, home-manager-unstable, home-manager-21_05, sops-nix, nur }: {
|
||||
# MacBook configuration: nix-darwin + home-manager
|
||||
darwinConfigurations."nki-macbook" = darwin.lib.darwinSystem rec {
|
||||
darwinConfigurations."nki-macbook" = darwin.lib.darwinSystem {
|
||||
system = "aarch64-darwin";
|
||||
modules = [
|
||||
./darwin/configuration.nix
|
||||
home-manager.darwinModules.home-manager
|
||||
home-manager-unstable.darwinModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = { inherit nixpkgs-unstable; };
|
||||
home-manager.users.nki = import ./home/macbook-home.nix;
|
||||
}
|
||||
];
|
||||
inputs = {
|
||||
inherit darwin nixpkgs-unstable;
|
||||
nixpkgs = nixpkgs-unstable;
|
||||
};
|
||||
};
|
||||
|
||||
# Home configuration
|
||||
nixosConfigurations."nki-home" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./modules/my-tinc
|
||||
sops-nix.nixosModules.sops
|
||||
./nki-home/configuration.nix
|
||||
home-manager-21_05.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.nki = import ./home/kagami-pc-home.nix;
|
||||
}
|
||||
(let
|
||||
overlay-unstable = final: prev: {
|
||||
unstable = import nixpkgs-unstable { config.allowUnfree = true; system = prev.system; };
|
||||
unfree = import nixpkgs { config.allowUnfree = true; system = prev.system; };
|
||||
};
|
||||
overlay-needs-unstable = final: prev: {
|
||||
# override some packages that needs unstable that cannot be changed in the setup.
|
||||
nix-direnv = prev.unstable.nix-direnv;
|
||||
};
|
||||
in
|
||||
{
|
||||
nixpkgs.overlays = [ overlay-unstable overlay-needs-unstable nur.overlay ]; # we assign the overlay created before to the overlays of nixpkgs.
|
||||
})
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue