Dump nixos config after scrubing
This commit is contained in:
commit
5fa4c76c24
854 changed files with 30072 additions and 0 deletions
131
flake.nix
Normal file
131
flake.nix
Normal file
|
|
@ -0,0 +1,131 @@
|
|||
{
|
||||
description = "NixOS config flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
nixpkgs-darwin.url = "github:NixOS/nixpkgs/nixpkgs-24.11-darwin";
|
||||
nix-darwin.url = "github:LnL7/nix-darwin/nix-darwin-24.11";
|
||||
nix-darwin.inputs.nixpkgs.follows = "nixpkgs-darwin";
|
||||
|
||||
# required to match on a specific version of Go for AKS dev setup.
|
||||
nixpkgs-msft-go.url = "github:NixOS/nixpkgs/5ed627539ac84809c78b2dd6d26a5cebeb5ae269";
|
||||
|
||||
nixgl.url = "github:nix-community/nixGL";
|
||||
nixgl.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
# Secrets management.
|
||||
sops-nix = {
|
||||
url = "github:mic92/sops-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-24.11";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
ghostty = {
|
||||
url = "github:ghostty-org/ghostty";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
nixpkgs-unstable,
|
||||
nixpkgs-msft-go,
|
||||
nix-darwin,
|
||||
nixos-hardware,
|
||||
home-manager,
|
||||
ghostty,
|
||||
nixgl, ...
|
||||
}@inputs: {
|
||||
nixosConfigurations = {
|
||||
nixlap = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
inherit inputs ghostty;
|
||||
};
|
||||
modules = [
|
||||
./hosts/nixlap/configuration.nix
|
||||
nixos-hardware.nixosModules.framework-13-7040-amd
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.jmug = import ./hosts/nixlap/home.nix;
|
||||
home-manager.users.root = import ./hosts/nixlap/home-root.nix;
|
||||
}
|
||||
];
|
||||
};
|
||||
devbox = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
modules = [
|
||||
./hosts/devbox/configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.jmug = import ./hosts/devbox/home.nix;
|
||||
home-manager.users.root = import ./hosts/devbox/home-root.nix;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Build darwin flake using:
|
||||
# $ darwin-rebuild build --flake .#macbook
|
||||
darwinConfigurations = {
|
||||
"macbook" = nix-darwin.lib.darwinSystem {
|
||||
system = "aarch64-darwin";
|
||||
specialArgs = {
|
||||
inherit inputs ghostty self;
|
||||
};
|
||||
modules = [
|
||||
./hosts/macbook/configuration.nix
|
||||
home-manager.darwinModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.uagm.imports = [ ./hosts/macbook/home.nix ];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
homeConfigurations = {
|
||||
alarm = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages."aarch64-linux";
|
||||
modules = [
|
||||
./users/alarm/home.nix
|
||||
];
|
||||
};
|
||||
msftdevbox = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
||||
extraSpecialArgs = {
|
||||
pkgs-msft-go = nixpkgs-msft-go.legacyPackages."x86_64-linux";
|
||||
pkgs-unstable = nixpkgs-unstable.legacyPackages."x86_64-linux";
|
||||
};
|
||||
modules = [
|
||||
./users/msftdevbox/home.nix
|
||||
];
|
||||
};
|
||||
nixlapmsft = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
||||
extraSpecialArgs = {
|
||||
inherit ghostty nixgl;
|
||||
pkgs-msft-go = nixpkgs-msft-go.legacyPackages."x86_64-linux";
|
||||
pkgs-unstable = nixpkgs-unstable.legacyPackages."x86_64-linux";
|
||||
};
|
||||
modules = [
|
||||
./users/nixlapmsft/home.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue