mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-07 20:28:08 +01:00
Refactor with nixfmt
This commit is contained in:
131
flake.nix
131
flake.nix
@@ -1,65 +1,74 @@
|
||||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
nixvim = {
|
||||
url = "github:Superredstone/nixvim";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nur = {
|
||||
url = "github:nix-community/NUR";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
millennium.url = "github:SteamClientHomebrew/Millennium?dir=packages/nix";
|
||||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
};
|
||||
nixvim = {
|
||||
url = "github:Superredstone/nixvim";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nur = {
|
||||
url = "github:nix-community/NUR";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
millennium.url = "github:SteamClientHomebrew/Millennium?dir=packages/nix";
|
||||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, home-manager, nixvim, millennium, nur, ... }@inputs:
|
||||
let
|
||||
overlays = [
|
||||
millennium.overlays.default
|
||||
nur.overlays.default
|
||||
];
|
||||
personalEmail = "patrickcanal3@gmail.com";
|
||||
username = "r3ddy";
|
||||
mkSystem = import ./lib/mksystem.nix {
|
||||
inherit
|
||||
overlays
|
||||
nixvim
|
||||
millennium
|
||||
nur
|
||||
inputs
|
||||
nixpkgs
|
||||
home-manager;
|
||||
};
|
||||
in
|
||||
{
|
||||
nixosConfigurations.katana = mkSystem "katana" {
|
||||
system = "x86_64-linux";
|
||||
user = username;
|
||||
email = personalEmail;
|
||||
gamingSystem = true;
|
||||
# Currently supported: plasma, gnome, hyprland and none
|
||||
desktopEnvironment = "gnome";
|
||||
additionalModules = [
|
||||
];
|
||||
};
|
||||
nixosConfigurations.workstation = mkSystem "workstation" {
|
||||
system = "x86_64-linux";
|
||||
user = username;
|
||||
email = personalEmail;
|
||||
workSystem = true;
|
||||
desktopEnvironment = "gnome";
|
||||
};
|
||||
nixosConfigurations."bomba" = mkSystem "bomba" {
|
||||
system = "x86_64-linux";
|
||||
email = personalEmail;
|
||||
user = username;
|
||||
desktopEnvironment = "none";
|
||||
};
|
||||
};
|
||||
outputs =
|
||||
{
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
nixvim,
|
||||
millennium,
|
||||
nur,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
overlays = [
|
||||
millennium.overlays.default
|
||||
nur.overlays.default
|
||||
];
|
||||
personalEmail = "patrickcanal3@gmail.com";
|
||||
username = "r3ddy";
|
||||
mkSystem = import ./lib/mksystem.nix {
|
||||
inherit
|
||||
overlays
|
||||
nixvim
|
||||
millennium
|
||||
nur
|
||||
inputs
|
||||
nixpkgs
|
||||
home-manager
|
||||
;
|
||||
};
|
||||
in
|
||||
{
|
||||
nixosConfigurations.katana = mkSystem "katana" {
|
||||
system = "x86_64-linux";
|
||||
user = username;
|
||||
email = personalEmail;
|
||||
gamingSystem = true;
|
||||
# Currently supported: plasma, gnome, hyprland and none
|
||||
desktopEnvironment = "gnome";
|
||||
additionalModules = [
|
||||
];
|
||||
};
|
||||
nixosConfigurations.workstation = mkSystem "workstation" {
|
||||
system = "x86_64-linux";
|
||||
user = username;
|
||||
email = personalEmail;
|
||||
workSystem = true;
|
||||
desktopEnvironment = "gnome";
|
||||
};
|
||||
nixosConfigurations."bomba" = mkSystem "bomba" {
|
||||
system = "x86_64-linux";
|
||||
email = personalEmail;
|
||||
user = username;
|
||||
desktopEnvironment = "none";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user