nixcfg/flake.nix
Aly Raffauf b215293da9
Some checks failed
git-mirror / gitlab-sync (push) Has been cancelled
nix-build / adjustor-build (push) Has been cancelled
nix-build / clean-install-build (push) Has been cancelled
nix-build / hhd-ui-build (push) Has been cancelled
nix-build / rofi-bluetooth-build (push) Has been cancelled
nix-build / fallarbor-build (push) Has been cancelled
nix-build / lavaridge-build (push) Has been cancelled
nix-build / mauville-build (push) Has been cancelled
nix-build / pacifidlog-build (push) Has been cancelled
nix-build / rustboro-build (push) Has been cancelled
nix-build / slateport-build (push) Has been cancelled
nix-check / fmt-check (push) Has been cancelled
nix-check / eval-check (push) Has been cancelled
flake: update inputs (#167)
* flake.lock: Update

Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/35b055009afd0107b69c286fca34d2ad98940d57?narHash=sha256-2EckCJn4wxran/TsRiCOFcmVpep2m9EBKl99NBh2GnM%3D' (2024-11-13)
  → 'github:nix-community/home-manager/1d0862ee2d7c6f6cd720d6f32213fa425004be10?narHash=sha256-Qq2YZZaDTB3FZLWU/Hgh1uuWlUBl3cMLGB99bm7rFUM%3D' (2024-11-14)
• Updated input 'nur':
    'github:nix-community/NUR/0b52d5e4307c0b9bed8c438a2a0300356cede857?narHash=sha256-xZrqREw7Fc%2BlgIMcMvyKiepSPBBy%2BHkopHvrkL1H/DI%3D' (2024-11-14)
  → 'github:nix-community/NUR/a8697e4c4ea67d9d98d6d99716823c3346be8462?narHash=sha256-W0FXB6ErqWHW7LFhph%2BIAGrSlteOfL5yzmc1GOOS%2Bbs%3D' (2024-11-15)
• Updated input 'stylix/tinted-foot':
    'github:tinted-theming/tinted-foot/e558fe47e187093313f19fa6a9eea61940ffbd6b?narHash=sha256-ByMVgH0rZ1by2YIVJ47gE8/ZHWcG8yqsErQ4tKLbm7Q%3D' (2024-09-29)
  → 'github:tinted-theming/tinted-foot/eedbcfa30de0a4baa03e99f5e3ceb5535c2755ce?narHash=sha256-65bz2bUL/yzZ1c8/GQASnoiGwaF8DczlxJtzik1c0AU%3D' (2023-10-08)

* flake: unlock stylix

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-15 06:47:28 -05:00

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/master";
};
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 {};
});
};
}