initial commit + sops!
This commit is contained in:
51
flake.nix
Normal file
51
flake.nix
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
description = "A very basic flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-24.05";
|
||||
home-manager.url = "github:nix-community/home-manager?ref=release-24.05";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
#hyprland.url = "github:hyprwm/Hyprland";
|
||||
#nix-colors.url = "github:misterio77/nix-colors";
|
||||
stylix.url = "github:danth/stylix/release-24.05";
|
||||
sops-nix.url = "github:Mic92/sops-nix";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, stylix, sops-nix, ... } @ inputs: let
|
||||
inherit (self) outputs;
|
||||
username = "jared";
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
# ============ NixOS Configuration ============ #
|
||||
tito = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {inherit inputs username stylix;};
|
||||
modules = [
|
||||
stylix.nixosModules.stylix
|
||||
sops-nix.nixosModules.sops
|
||||
./hosts/tito/configuration.nix
|
||||
home-manager.nixosModules.home-manager {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.jared = import ./home/jared/home.nix;
|
||||
}
|
||||
];
|
||||
};
|
||||
xps = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {inherit inputs username stylix;};
|
||||
modules = [
|
||||
stylix.nixosModules.stylix
|
||||
sops-nix.nixosModules.sops
|
||||
./hosts/xps/configuration.nix
|
||||
home-manager.nixosModules.home-manager {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.jared = import ./home/jared/home.nix;
|
||||
}
|
||||
];
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user