mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 00:13:55 -05:00
Aly Raffauf
7453aedb63
* flake.lock: Update Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/3979285062d6781525cded0f6c4ff92e71376b55?narHash=sha256-o5m5WzvY6cGIDupuOvjgNSS8AN6yP2iI9MtUC6q/uos%3D' (2024-10-29) → 'github:nix-community/disko/856a2902156ba304efebd4c1096dbf7465569454?narHash=sha256-sdY29RWz0S7VbaoTwSy6RummdHKf0wUTaBlqPxrtvmQ%3D' (2024-11-04) • Updated input 'home-manager': 'github:nix-community/home-manager/8ca921e5a806b5b6171add542defe7bdac79d189?narHash=sha256-0AfApF8aexgB6o34qqLW2cCX4LaWJajBVdU6ddiWZBM%3D' (2024-11-01) → 'github:nix-community/home-manager/2f607e07f3ac7e53541120536708e824acccfaa8?narHash=sha256-0kZL4m%2BbKBJUBQse0HanewWO0g8hDdCvBhudzxgehqc%3D' (2024-11-05) • Updated input 'jovian': 'github:Jovian-Experiments/Jovian-NixOS/bd1da5657b8903b293a0ff51eb896a91a544ebed?narHash=sha256-xmZQFGeIm2TzXv4jGaQ3nfBoUbt4gKbIv/SHVWw93ag%3D' (2024-11-01) → 'github:Jovian-Experiments/Jovian-NixOS/84da0883c26098a343b3056c025943d991d1c7f5?narHash=sha256-c9N34iMGlYvIhEDGEzidYoua/nJCjtXI0Sf/ZYtY4Ds%3D' (2024-11-06) • Updated input 'nix-gaming': 'github:fufexan/nix-gaming/bcc7c896b56ccd644ca2daea74dac05c1731f59d?narHash=sha256-dfxO6mkn1KkotGQXV93m/2MoS9ayLUwaIIbR3mReLd0%3D' (2024-11-01) → 'github:fufexan/nix-gaming/0c25376479d11073346ed22de8571805543ede71?narHash=sha256-UHm56cW/04efHY4NgboGFOXliGQCqRRY%2Bl1HM7c8/Ms%3D' (2024-11-05) • Updated input 'nix-gaming/flake-parts': 'github:hercules-ci/flake-parts/3d04084d54bedc3d6b8b736c70ef449225c361b1?narHash=sha256-K5ZLCyfO/Zj9mPFldf3iwS6oZStJcU4tSpiXTMYaaL0%3D' (2024-10-01) → 'github:hercules-ci/flake-parts/506278e768c2a08bec68eb62932193e341f55c90?narHash=sha256-hgmguH29K2fvs9szpq2r3pz2/8cJd2LPS%2Bb4tfNFCwE%3D' (2024-11-01) • Updated input 'nix-gaming/flake-parts/nixpkgs-lib': 'fb192fec7c
.tar.gz?narHash=sha256-0xHYkMkeLVQAMa7gvkddbPqpxph%2BhDzdu1XdGPJR%2BOs%3D' (2024-10-01) → 'cc2f280002
.tar.gz?narHash=sha256-lXvH/vOfb4aGYyvFmZK/HlsNsr/0CVWlwYvo2rxJk3s%3D' (2024-11-01) • Updated input 'nix-gaming/umu': 'git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix&ref=refs/heads/main&rev=72499f349ca81cb2838eced9d7c465b2cf71c4a2&submodules=1' (2024-10-26) → 'git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix&ref=refs/heads/main&rev=70645c290dfc6ed10282bf4d2ae38c0bf7b1a3fb&submodules=1' (2024-11-02) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/2768c7d042a37de65bb1b5b3268fc987e534c49d?narHash=sha256-AlcmCXJZPIlO5dmFzV3V2XF6x/OpNWUV8Y/FMPGd8Z4%3D' (2024-10-23) → 'github:nixos/nixpkgs/4aa36568d413aca0ea84a1684d2d46f55dbabad7?narHash=sha256-Zwl8YgTVJTEum%2BL%2B0zVAWvXAGbWAuXHax3KzuejaDyo%3D' (2024-11-05) • Updated input 'nur': 'github:nix-community/NUR/0cec4b96fa9a9f3b348439ede1fd5ef46593b966?narHash=sha256-J8dDwKgRXrS6Jfija3Fu/UhsjtESq7LVc6rSd3TCRzc%3D' (2024-11-01) → 'github:nix-community/NUR/340b8c3ca8a5fcfe8a2230a5e76442b36f68e2ca?narHash=sha256-YDJ1R6NmTpGhLpXrlqp3p9H/ktr2BJD1GoG1WMagYRc%3D' (2024-11-06) • Updated input 'stylix': 'github:danth/stylix/04afcfc0684d9bbb24bb1dc77afda7c1843ec93b?narHash=sha256-uGjTjvvlGQfQ0yypVP%2Bat0NizI2nrb6kz4wGAqzRGbY%3D' (2024-10-26) → 'github:danth/stylix/762c07ee10b381bc8e085be5b6c2ec43139f13b0?narHash=sha256-tGvmW0qih%2BdCAH9L4BEMYMiHcBoJVZtESbC9WH0EEuw%3D' (2024-11-06) * flake: lock stylix to avoid hyprland config issues * greetd: format --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
213 lines
6 KiB
Nix
213 lines
6 KiB
Nix
{
|
|
description = "Aly's NixOS flake.";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
agenix = {
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
url = "github:ryantm/agenix";
|
|
};
|
|
|
|
disko = {
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
url = "github:nix-community/disko";
|
|
};
|
|
|
|
home-manager = {
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
url = "github:nix-community/home-manager/master";
|
|
};
|
|
|
|
iio-hyprland = {
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
url = "github:JeanSchoeller/iio-hyprland";
|
|
};
|
|
|
|
jovian = {
|
|
url = "github:Jovian-Experiments/Jovian-NixOS";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
lanzaboote = {
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
url = "github:nix-community/lanzaboote/v0.4.1";
|
|
};
|
|
|
|
nix-gaming = {
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
url = "github:fufexan/nix-gaming";
|
|
};
|
|
|
|
nur.url = "github:nix-community/NUR";
|
|
|
|
stylix = {
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
url = "github:danth/stylix?rev=04afcfc0684d9bbb24bb1dc77afda7c1843ec93b";
|
|
};
|
|
|
|
wallpapers = {
|
|
url = "github:alyraffauf/wallpapers";
|
|
flake = false; # This is important to specify that it's a non-flake
|
|
};
|
|
};
|
|
|
|
nixConfig = {
|
|
accept-flake-config = true;
|
|
|
|
extra-substituters = [
|
|
"https://alyraffauf.cachix.org"
|
|
"https://jovian-nixos.cachix.org"
|
|
"https://nix-community.cachix.org"
|
|
"https://nix-gaming.cachix.org"
|
|
];
|
|
|
|
extra-trusted-public-keys = [
|
|
"alyraffauf.cachix.org-1:GQVrRGfjTtkPGS8M6y7Ik0z4zLt77O0N25ynv2gWzDM="
|
|
"jovian-nixos.cachix.org-1:mAWLjAxLNlfxAnozUjOqGj4AxQwCl7MXwOfu7msVlAo="
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
|
|
];
|
|
};
|
|
|
|
outputs = {self, ...}: let
|
|
allLinuxSystems = [
|
|
"aarch64-linux"
|
|
"x86_64-linux"
|
|
];
|
|
|
|
allMacSystems = [
|
|
"aarch64-darwin"
|
|
"x86_64-darwin"
|
|
];
|
|
|
|
allSystems = allLinuxSystems ++ allMacSystems;
|
|
|
|
forAllLinuxSystems = f:
|
|
self.inputs.nixpkgs.lib.genAttrs allLinuxSystems (system:
|
|
f {
|
|
pkgs = import self.inputs.nixpkgs {inherit system;};
|
|
});
|
|
|
|
forAllSystems = f:
|
|
self.inputs.nixpkgs.lib.genAttrs allSystems (system:
|
|
f {
|
|
pkgs = import self.inputs.nixpkgs {inherit system;};
|
|
});
|
|
|
|
forAllHosts = self.inputs.nixpkgs.lib.genAttrs [
|
|
"fallarbor"
|
|
"lavaridge"
|
|
"mauville"
|
|
"pacifidlog"
|
|
"rustboro"
|
|
"slateport"
|
|
];
|
|
in {
|
|
devShells = forAllLinuxSystems ({pkgs}: {
|
|
default = pkgs.mkShell {
|
|
packages =
|
|
(with pkgs; [
|
|
e2fsprogs
|
|
git
|
|
mdformat
|
|
nh
|
|
nix-update
|
|
ruby
|
|
sbctl
|
|
])
|
|
++ [
|
|
self.formatter.${pkgs.system}
|
|
self.inputs.agenix.packages.${pkgs.system}.default
|
|
self.packages.${pkgs.system}.default
|
|
];
|
|
|
|
shellHook = ''
|
|
export FLAKE="."
|
|
'';
|
|
};
|
|
});
|
|
|
|
formatter = forAllSystems ({pkgs}: pkgs.alejandra);
|
|
|
|
homeManagerModules = {
|
|
default = import ./homeManagerModules self;
|
|
aly = import ./homes/aly self;
|
|
dustin = import ./homes/dustin self;
|
|
};
|
|
|
|
nixosModules = {
|
|
common-auto-upgrade = import ./common/autoUpgrade.nix;
|
|
common-base = import ./common/base.nix;
|
|
common-locale = import ./common/locale.nix;
|
|
common-mauville-share = import ./common/samba.nix;
|
|
common-nix = import ./common/nix.nix;
|
|
common-pkgs = import ./common/pkgs.nix;
|
|
common-tailscale = import ./common/tailscale.nix;
|
|
common-wifi-profiles = import ./common/wifi.nix;
|
|
|
|
hw-common = import ./hwModules/common;
|
|
hw-common-amd-cpu = import ./hwModules/common/gpu/amd;
|
|
hw-common-amd-gpu = import ./hwModules/common/cpu/amd;
|
|
hw-common-bluetooth = import ./hwModules/common/bluetooth;
|
|
hw-common-gaming = import ./hwModules/common/gaming;
|
|
hw-common-intel-cpu = import ./hwModules/common/cpu/intel;
|
|
hw-common-intel-gpu = import ./hwModules/common/gpu/intel;
|
|
hw-common-laptop = import ./hwModules/common/laptop;
|
|
hw-common-laptop-intel-cpu = import ./hwModules/common/laptop/intel-cpu.nix;
|
|
hw-common-ssd = import ./hwModules/common/ssd;
|
|
hw-framework-13-amd-7000 = import ./hwModules/framework/13/amd-7000;
|
|
hw-framework-13-intel-11th = import ./hwModules/framework/13/intel-11th;
|
|
hw-lenovo-legion-go = import ./hwModules/lenovo/legion/go;
|
|
hw-thinkpad-t440p = import ./hwModules/thinkpad/t440p;
|
|
|
|
nixos = import ./nixosModules self;
|
|
users = import ./userModules self;
|
|
};
|
|
|
|
nixosConfigurations = forAllHosts (
|
|
host:
|
|
self.inputs.nixpkgs.lib.nixosSystem {
|
|
specialArgs = {inherit self;};
|
|
modules = [
|
|
./hosts/${host}
|
|
self.inputs.agenix.nixosModules.default
|
|
self.inputs.disko.nixosModules.disko
|
|
self.inputs.home-manager.nixosModules.home-manager
|
|
self.inputs.lanzaboote.nixosModules.lanzaboote
|
|
self.inputs.stylix.nixosModules.stylix
|
|
self.nixosModules.nixos
|
|
self.nixosModules.users
|
|
{
|
|
home-manager = {
|
|
backupFileExtension = "backup";
|
|
extraSpecialArgs = {inherit self;};
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
};
|
|
}
|
|
];
|
|
}
|
|
);
|
|
|
|
overlays = {
|
|
tablet = import ./overlays/tablet.nix;
|
|
default = import ./overlays/default.nix {inherit self;};
|
|
};
|
|
|
|
packages = forAllLinuxSystems ({pkgs}: rec {
|
|
default = clean-install;
|
|
|
|
adjustor = pkgs.callPackage ./pkgs/adjustor.nix {};
|
|
|
|
clean-install = pkgs.writeShellApplication {
|
|
name = "clean-install";
|
|
text = ./flake/clean-install.sh;
|
|
};
|
|
|
|
hhd-ui = pkgs.callPackage ./pkgs/hhd-ui.nix {};
|
|
rofi-bluetooth = pkgs.callPackage ./pkgs/rofi-bluetooth.nix {};
|
|
});
|
|
};
|
|
}
|