2022-10-08 15:40:33 -07:00
|
|
|
{
|
2022-11-08 19:08:54 -08:00
|
|
|
description = "Nick's NixOS Configuration";
|
2022-10-08 15:40:33 -07:00
|
|
|
|
|
|
|
inputs = {
|
2023-12-02 18:17:10 -08:00
|
|
|
utils.url = "github:numtide/flake-utils";
|
2023-07-29 12:48:45 -07:00
|
|
|
nixvim.url = "github:nix-community/nixvim";
|
2023-12-21 22:25:17 -08:00
|
|
|
nixpkgs = {
|
|
|
|
url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
# url = "github:NixOS/nixpkgs/b477b25191fc94ce764428520b83b6b64366e3c8";
|
|
|
|
};
|
|
|
|
|
2023-12-03 14:07:13 -08:00
|
|
|
nixpkgs-stable = {
|
2023-12-21 22:25:17 -08:00
|
|
|
url = "github:NixOS/nixpkgs/release-23.11";
|
2023-12-03 14:07:13 -08:00
|
|
|
};
|
2023-07-29 12:48:45 -07:00
|
|
|
kmonad.url = "github:kmonad/kmonad?dir=nix";
|
2023-11-08 21:00:11 -08:00
|
|
|
|
2024-01-09 18:49:24 -08:00
|
|
|
atuin = {
|
|
|
|
url = "github:atuinsh/atuin";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-12-02 18:17:10 -08:00
|
|
|
headscale = {
|
2023-12-03 14:07:13 -08:00
|
|
|
# url = "github:kradalby/headscale/bbb4c357268998fd02780b7f8f2013f76e3ab80a";
|
2024-02-17 11:29:53 -08:00
|
|
|
url = "github:juanfont/headscale/c42f25bd72e8b8d740af6c7cc4410507fc686b7e";
|
2023-12-02 18:17:10 -08:00
|
|
|
# url = "github:juanfont/headscale"; # Real repo
|
|
|
|
inputs."flake-utils".follows = "utils";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2023-08-25 20:26:33 -07:00
|
|
|
nicks_nextcloud_integrations.url = "git+https://git.nickiel.net/Nickiel/nicks_nextcloud_integrations.git";
|
2023-11-08 21:00:11 -08:00
|
|
|
ewwtilities.url = "git+https://git.nickiel.net/Nickiel/Ewwtilities.git";
|
2023-08-25 20:26:33 -07:00
|
|
|
|
2022-10-08 15:40:33 -07:00
|
|
|
home-manager = {
|
|
|
|
url = github:nix-community/home-manager;
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-12-02 18:17:10 -08:00
|
|
|
outputs = inputs@{
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
nixpkgs-stable,
|
|
|
|
headscale,
|
|
|
|
home-manager,
|
|
|
|
ewwtilities,
|
|
|
|
kmonad,
|
2024-01-09 18:48:18 -08:00
|
|
|
atuin,
|
2023-12-02 18:17:10 -08:00
|
|
|
...
|
|
|
|
}:
|
2022-10-08 15:40:33 -07:00
|
|
|
let
|
|
|
|
user = "nixolas";
|
2023-02-16 11:28:00 -08:00
|
|
|
system = "x86_64-linux";
|
2023-09-21 10:37:37 -07:00
|
|
|
|
2023-12-02 18:17:10 -08:00
|
|
|
pkgs-stable = import nixpkgs-stable {
|
2023-02-16 11:28:00 -08:00
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
2023-09-21 10:37:37 -07:00
|
|
|
|
2023-02-16 11:47:00 -08:00
|
|
|
lib = nixpkgs.lib;
|
2022-10-08 15:40:33 -07:00
|
|
|
in {
|
2023-02-16 11:28:00 -08:00
|
|
|
nixosConfigurations = {
|
2023-10-22 19:21:16 -07:00
|
|
|
|
2023-03-31 17:38:15 -07:00
|
|
|
# Home server
|
2023-03-31 18:55:21 -07:00
|
|
|
Alaska = lib.nixosSystem {
|
2023-03-31 17:38:15 -07:00
|
|
|
inherit system;
|
2023-09-21 10:37:37 -07:00
|
|
|
specialArgs = {
|
2024-01-09 19:04:28 -08:00
|
|
|
inherit user headscale;
|
2023-09-21 10:37:37 -07:00
|
|
|
};
|
2023-03-31 17:38:15 -07:00
|
|
|
|
|
|
|
modules = [
|
|
|
|
{
|
|
|
|
networking.hostName = "Alaska";
|
|
|
|
}
|
2023-12-25 18:38:17 -08:00
|
|
|
inputs.nicks_nextcloud_integrations.nixosModules.default
|
2023-03-31 17:38:15 -07:00
|
|
|
./hosts/Alaska
|
|
|
|
home-manager.nixosModules.home-manager {
|
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
2023-09-21 10:37:37 -07:00
|
|
|
extraSpecialArgs = {
|
2024-01-09 19:04:28 -08:00
|
|
|
inherit user ewwtilities atuin pkgs-stable;
|
2023-09-21 10:37:37 -07:00
|
|
|
};
|
2023-08-05 08:52:27 -07:00
|
|
|
users.${user} = {
|
|
|
|
imports = [
|
2023-10-22 19:21:16 -07:00
|
|
|
(import ./home.nix)
|
2023-08-05 08:52:27 -07:00
|
|
|
# Add nixvim to the homemanager
|
|
|
|
inputs.nixvim.homeManagerModules.nixvim
|
|
|
|
];
|
|
|
|
};
|
2023-03-31 17:38:15 -07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-02-16 11:47:00 -08:00
|
|
|
NicksNixLaptop = lib.nixosSystem {
|
2023-02-16 11:28:00 -08:00
|
|
|
inherit system;
|
2023-09-21 10:37:37 -07:00
|
|
|
specialArgs = {
|
2023-12-03 14:07:13 -08:00
|
|
|
inherit user;
|
2023-09-21 10:37:37 -07:00
|
|
|
};
|
2023-02-16 11:28:00 -08:00
|
|
|
|
|
|
|
modules = [
|
|
|
|
{
|
|
|
|
networking.hostName = "NicksNixLaptop";
|
|
|
|
}
|
|
|
|
kmonad.nixosModules.default
|
|
|
|
./hosts/laptop
|
|
|
|
./hosts/configuration.nix
|
|
|
|
./modules/kmonad.nix
|
2023-02-16 11:47:00 -08:00
|
|
|
home-manager.nixosModules.home-manager {
|
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
2023-09-21 10:37:37 -07:00
|
|
|
extraSpecialArgs = {
|
2024-01-09 19:04:28 -08:00
|
|
|
inherit user ewwtilities atuin pkgs-stable;
|
2023-09-21 10:37:37 -07:00
|
|
|
};
|
2023-08-05 08:52:27 -07:00
|
|
|
users.${user} = {
|
|
|
|
imports = [
|
2023-10-22 19:21:16 -07:00
|
|
|
(import ./home.nix)
|
2023-08-05 08:52:27 -07:00
|
|
|
# Add nixvim to the homemanager
|
|
|
|
inputs.nixvim.homeManagerModules.nixvim
|
|
|
|
];
|
|
|
|
};
|
2023-02-16 11:47:00 -08:00
|
|
|
};
|
|
|
|
}
|
2023-02-16 11:28:00 -08:00
|
|
|
];
|
2023-02-16 11:47:00 -08:00
|
|
|
};
|
2023-02-25 17:19:34 -08:00
|
|
|
|
|
|
|
NicksNixDesktop = lib.nixosSystem {
|
|
|
|
inherit system;
|
|
|
|
specialArgs = { inherit user; };
|
|
|
|
|
|
|
|
modules = [
|
|
|
|
{
|
|
|
|
networking.hostName = "NicksNixDesktop";
|
|
|
|
}
|
|
|
|
kmonad.nixosModules.default
|
|
|
|
./hosts/desktop
|
|
|
|
./hosts/configuration.nix
|
|
|
|
./modules/kmonad.nix
|
2023-03-17 15:18:18 -07:00
|
|
|
./modules/steam.nix
|
2023-02-25 17:19:34 -08:00
|
|
|
home-manager.nixosModules.home-manager {
|
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
2023-09-21 10:37:37 -07:00
|
|
|
extraSpecialArgs = {
|
2024-01-09 18:47:47 -08:00
|
|
|
inherit user ewwtilities atuin pkgs-stable;
|
2023-09-21 10:37:37 -07:00
|
|
|
};
|
2023-07-29 12:48:45 -07:00
|
|
|
users.${user} = {
|
|
|
|
imports = [
|
2023-10-22 19:21:16 -07:00
|
|
|
(import ./home.nix)
|
2023-07-29 16:01:53 -07:00
|
|
|
# Add nixvim to the homemanager
|
2023-07-29 12:48:45 -07:00
|
|
|
inputs.nixvim.homeManagerModules.nixvim
|
|
|
|
];
|
|
|
|
};
|
2023-02-25 17:19:34 -08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2022-10-08 15:40:33 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|