2024-12-02 03:57:34 -07:00
|
|
|
{
|
|
|
|
description = "NixOS Configuration";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
# General NixOS config
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
nixpkgs-24-11.url = "github:NixOS/nixpkgs/nixos-24.11";
|
2024-12-12 15:33:50 -07:00
|
|
|
# Colmena unstable
|
|
|
|
colmena = {
|
|
|
|
url = "github:zhaofengli/colmena";
|
|
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-12-02 19:35:25 -07:00
|
|
|
# Nixpkgs index for command-not-found support
|
|
|
|
nix-index-database = {
|
|
|
|
url = "github:nix-community/nix-index-database";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-12-02 03:57:34 -07:00
|
|
|
# NixOS Grub Themes (hyperfluent)
|
|
|
|
nixos-grub-themes = {
|
|
|
|
url = "github:jeslie0/nixos-grub-themes";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
# SDDM Sugar Candy
|
|
|
|
sddm-sugar-candy-nix = {
|
|
|
|
url = "github:Zhaith-Izaliel/sddm-sugar-candy-nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
# Home Manager + Plasma
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager/master";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
plasma-manager = {
|
|
|
|
url = "github:nix-community/plasma-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.home-manager.follows = "home-manager";
|
|
|
|
};
|
|
|
|
# Firefox Nightly + Addons
|
|
|
|
firefox-nightly = {
|
|
|
|
url = "github:nix-community/flake-firefox-nightly";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
firefox-addons = {
|
|
|
|
type = "gitlab";
|
|
|
|
owner = "rycee";
|
|
|
|
repo = "nur-expressions";
|
|
|
|
dir = "/pkgs/firefox-addons";
|
|
|
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
# VSCode extensions
|
|
|
|
vscode-extensions = {
|
|
|
|
url = "github:nix-community/nix-vscode-extensions";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-12-12 15:33:50 -07:00
|
|
|
# VSCode server support
|
|
|
|
vscode-server.url = "github:nix-community/nixos-vscode-server";
|
2024-12-02 03:57:34 -07:00
|
|
|
};
|
|
|
|
|
2024-12-12 15:33:50 -07:00
|
|
|
outputs = inputs@{ self, nixpkgs, home-manager, nix-index-database, vscode-server, colmena, ... }: let
|
2024-12-02 03:57:34 -07:00
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
secrets = import ./secrets.nix;
|
|
|
|
in {
|
|
|
|
nixosConfigurations.ty-nixos = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
|
|
|
|
|
|
|
modules = [
|
|
|
|
./hosts/laptop
|
|
|
|
|
2024-12-02 19:35:25 -07:00
|
|
|
# Better command-not-found
|
|
|
|
nix-index-database.nixosModules.nix-index
|
|
|
|
{ programs.nix-index-database.comma.enable = true; }
|
|
|
|
|
2024-12-02 03:57:34 -07:00
|
|
|
# Home manager
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
./home-manager
|
2024-12-15 22:43:55 -07:00
|
|
|
{ meta.home-manager.preset = "plasma-desktop"; }
|
2024-12-02 03:57:34 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
specialArgs = {
|
|
|
|
inherit inputs system secrets;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-12-11 19:32:45 -07:00
|
|
|
nixosConfigurations."ty-laptop-server" = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
|
|
|
|
|
|
|
modules = [
|
|
|
|
./hosts/laptop-server
|
|
|
|
|
|
|
|
# Better command-not-found
|
|
|
|
nix-index-database.nixosModules.nix-index
|
|
|
|
{ programs.nix-index-database.comma.enable = true; }
|
|
|
|
|
2024-12-11 20:09:53 -07:00
|
|
|
# Home manager
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
./home-manager
|
2024-12-15 22:43:55 -07:00
|
|
|
{ meta.home-manager.preset = "cli"; }
|
2024-12-12 15:33:50 -07:00
|
|
|
|
|
|
|
# VSCode server support
|
|
|
|
vscode-server.nixosModules.default
|
|
|
|
({ pkgs, ... }: { services.vscode-server = { enable = true; nodejsPackage = pkgs.nodejs-18_x; installPath = "$HOME/.vscodium-server"; }; })
|
2024-12-02 03:57:34 -07:00
|
|
|
];
|
|
|
|
|
2024-12-11 20:09:53 -07:00
|
|
|
specialArgs = {
|
2024-12-02 03:57:34 -07:00
|
|
|
inherit inputs system secrets;
|
|
|
|
};
|
|
|
|
};
|
2024-12-12 15:33:50 -07:00
|
|
|
|
|
|
|
colmenaHive = colmena.lib.makeHive self.outputs.colmena;
|
|
|
|
colmena = {
|
|
|
|
meta = {
|
|
|
|
nixpkgs = import nixpkgs { system = "x86_64-linux"; };
|
|
|
|
specialArgs = {
|
|
|
|
inherit inputs secrets;
|
|
|
|
|
|
|
|
system = "x86_64-linux";
|
|
|
|
};
|
|
|
|
allowApplyAll = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
"ty-laptop-server" = { config, ... }: {
|
|
|
|
deployment = {
|
|
|
|
replaceUnknownProfiles = false;
|
|
|
|
targetUser = "root";
|
|
|
|
targetHost = "old-lenovo-laptop"; # i should rename my tailscale devices properly
|
|
|
|
targetPort = 22;
|
|
|
|
};
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
./hosts/laptop-server
|
|
|
|
|
|
|
|
# Better command-not-found
|
|
|
|
nix-index-database.nixosModules.nix-index
|
|
|
|
{ programs.nix-index-database.comma.enable = true; }
|
|
|
|
|
|
|
|
# Home manager
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
./home-manager
|
|
|
|
{
|
|
|
|
ty-home-manager-options = {
|
|
|
|
plasma.enable = false;
|
|
|
|
beets.enable = false;
|
|
|
|
firefox.enable = false;
|
|
|
|
thunderbird.enable = false;
|
|
|
|
rescrobbled.enable = false;
|
|
|
|
vscode.enable = false;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
# VSCode server support
|
|
|
|
vscode-server.nixosModules.default
|
|
|
|
({ pkgs, ... }: { services.vscode-server = { enable = true; nodejsPackage = pkgs.nodejs-18_x; installPath = "$HOME/.vscodium-server"; }; })
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2024-12-02 03:57:34 -07:00
|
|
|
};
|
2024-12-12 15:33:50 -07:00
|
|
|
}
|