nixos-combined-flake/flake.nix

139 lines
4.1 KiB
Nix

{
description = "My Nix Configs";
outputs = {
self,
nixpkgs,
flake-utils,
...
}: let
inherit (self) inputs outputs;
flakeLib = import ./lib;
vars = rec {
name = "Patrick Neff";
username = "odie";
homeDirectory = "/home/${username}";
locale = "de_DE.UTF-8";
email = "odie86@gmail.com";
timeZone = "Europe/Berlin";
sshKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIByWNNmKhjVk5VEjk3aSKosOXzglCbiq7q8IQ8mA0qQe odie"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA1QZO6fF2RLcmjMKdG1eZi0RLw3joa+VBXaKvfmA7Tg odie"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINs89u4Kvwlmq67eV+H/n+x9M8gsKDxQU+dCPSEb2vJe odie"
];
domain = "odie.intranet";
};
in
{
nixosModules = {
base = import ./modules/nixos/base;
desktop = import ./modules/nixos/desktop;
wsl = import ./modules/nixos/wsl;
};
nixosConfigurations =
flakeLib.mkSystem {
inherit inputs nixpkgs vars;
system = "x86_64-linux";
hostName = "vm";
}
// flakeLib.mkSystem {
inherit inputs nixpkgs vars;
system = "x86_64-linux";
hostName = "wsl-dev";
}
// flakeLib.mkSystem {
inherit inputs nixpkgs vars;
system = "aarch64-linux";
hostName = "pi1";
}
// {};
homeManagerModules = {
base = import ./modules/home-manager/base.nix;
desktop = import ./modules/home-manager/desktop.nix;
shell = import ./modules/home-manager/shell.nix;
dev = import ./modules/home-manager/dev.nix;
};
homeConfigurations = {
"odie@wanaheim" = flakeLib.mkHomeConfiguration {
inherit inputs outputs nixpkgs flakeLib vars;
profile = ./profiles/home-manager/desktop-dev.nix;
system = "x86_64-linux";
modules = [
{
desktop = {
enable = true;
awesome = {
enable = true;
wifi_device = "'wlp3s0'";
battery_device = "'BAT0'";
};
};
services.picom.enable = false;
programs.rofi.enable = true;
}
];
};
"odie@asgard" = flakeLib.mkHomeConfiguration {
inherit inputs outputs nixpkgs flakeLib vars;
profile = ./profiles/home-manager/desktop-dev.nix;
system = "x86_64-linux";
modules = [
{
desktop = {
enable = true;
awesome = {
enable = false;
};
};
programs = {
firefox.enable = false;
keepassxc.enable = false;
};
services.nixGL.enable = true;
services.borgmatic.enable = true;
theme.cursor.enable = false;
theme.gtk.enable = false;
}
];
};
};
}
// flake-utils.lib.eachDefaultSystem (system: {
packages = {
neovim-ide = import ./pkgs/nixvim {inherit inputs system flakeLib nixpkgs;};
};
});
inputs = {
#nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
#nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nur.url = "github:nix-community/NUR";
nix-colors.url = "github:misterio77/nix-colors";
systems.url = "github:nix-systems/default";
flake-parts.url = "github:hercules-ci/flake-parts";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixgl = {
url = "github:nix-community/nixGL/9b4887dbf16933bdc124296434b3898d810b3608";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
};
}