169 lines
3.9 KiB
Nix
169 lines
3.9 KiB
Nix
{
|
|
description = "DACHXY NixOS with hyprland";
|
|
|
|
inputs = {
|
|
nixpkgs = {
|
|
url = "github:nixos/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
nixpkgs-unstable = {
|
|
url = "github:nixos/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
firefox = {
|
|
url = "github:nix-community/flake-firefox-nightly";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
nix-index-database.url = "github:nix-community/nix-index-database";
|
|
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
ghostty = {
|
|
url = "github:ghostty-org/ghostty";
|
|
};
|
|
|
|
yazi = {
|
|
url = "github:sxyazi/yazi";
|
|
};
|
|
|
|
hyprland = {
|
|
url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
|
};
|
|
|
|
hyprland-plugins = {
|
|
url = "github:hyprwm/hyprland-plugins";
|
|
inputs.hyprland.follows = "hyprland";
|
|
};
|
|
|
|
hyprgrass = {
|
|
url = "github:horriblename/hyprgrass";
|
|
inputs.hyprland.follows = "hyprland";
|
|
};
|
|
|
|
Hyprspace = {
|
|
url = "github:KZDKM/Hyprspace";
|
|
inputs.hyprland.follows = "hyprland";
|
|
};
|
|
|
|
hyprtasking = {
|
|
url = "github:raybbian/hyprtasking";
|
|
inputs.hyprland.follows = "hyprland";
|
|
};
|
|
|
|
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
|
|
|
|
lanzaboote = {
|
|
url = "github:nix-community/lanzaboote/v0.4.2";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
disko = {
|
|
url = "github:nix-community/disko";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
nixConfig = {
|
|
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
nixpkgs,
|
|
nixpkgs-unstable,
|
|
nix-index-database,
|
|
lanzaboote,
|
|
disko,
|
|
...
|
|
}@inputs:
|
|
let
|
|
system = "x86_64-linux";
|
|
# pkgs = import nixpkgs {
|
|
# system = "x86_64-linux";
|
|
# config.allowUnfree = true;
|
|
# };
|
|
nix-version = "25.05";
|
|
username = "danny";
|
|
git-config = {
|
|
username = "DACHXY";
|
|
email = "danny10132024@gmail.com";
|
|
};
|
|
unstable = import nixpkgs-unstable { inherit system; };
|
|
in
|
|
{
|
|
nixosConfigurations = {
|
|
dn-pre7780 = nixpkgs.lib.nixosSystem {
|
|
modules = [
|
|
nix-index-database.nixosModules.nix-index
|
|
lanzaboote.nixosModules.lanzaboote
|
|
./system/dev/dn-pre7780
|
|
];
|
|
specialArgs = {
|
|
inherit
|
|
unstable
|
|
inputs
|
|
system
|
|
nix-version
|
|
username
|
|
git-config
|
|
;
|
|
};
|
|
};
|
|
|
|
dn-lap = nixpkgs.lib.nixosSystem {
|
|
modules = [
|
|
nix-index-database.nixosModules.nix-index
|
|
lanzaboote.nixosModules.lanzaboote
|
|
./system/dev/dn-lap
|
|
];
|
|
specialArgs = {
|
|
inherit
|
|
unstable
|
|
inputs
|
|
system
|
|
nix-version
|
|
username
|
|
git-config
|
|
;
|
|
};
|
|
};
|
|
|
|
dn-server = nixpkgs.lib.nixosSystem {
|
|
modules = [
|
|
disko.nixosModules.disko
|
|
nix-index-database.nixosModules.nix-index
|
|
lanzaboote.nixosModules.lanzaboote
|
|
./system/dev/dn-server
|
|
];
|
|
specialArgs = {
|
|
inherit
|
|
unstable
|
|
inputs
|
|
system
|
|
nix-version
|
|
username
|
|
git-config
|
|
;
|
|
};
|
|
};
|
|
|
|
# Use this for all other target
|
|
# nixos-anywhere --flake .#generic --generate-hardware-config nixos-generate-config ./hardware-configuration.nix <hostname>
|
|
generic = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
|
|
modules = [
|
|
disko.nixosModules.disko
|
|
./system/dev/generic
|
|
./hardware-configuration.nix
|
|
];
|
|
specialArgs = {
|
|
inherit nix-version;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|