my nixos dotfiles :3 codeberg.org/koibtw/dotfiles
dotfiles neovim nixos catppuccin linux
at main 1.9 kB view raw
1{ 2 description = "my nixos dotfiles :3"; 3 4 inputs = { 5 nixpkgs.url = "https://channels.nixos.org/nixos-25.11/nixexprs.tar.xz"; 6 # nixpkgs-unstable.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz"; 7 systems.url = "github:nix-systems/default"; 8 9 home-manager = { 10 url = "github:nix-community/home-manager/release-25.11"; 11 inputs.nixpkgs.follows = "nixpkgs"; 12 }; 13 14 anvim = { 15 url = "https://codeberg.org/koibtw/anvim/archive/main.tar.gz"; 16 inputs.nixpkgs.follows = "nixpkgs"; 17 }; 18 19 cuteff = { 20 url = "https://codeberg.org/koibtw/cuteff/archive/main.tar.gz"; 21 inputs.nixpkgs.follows = "nixpkgs"; 22 }; 23 24 niri = { 25 url = "github:sodiboo/niri-flake"; 26 # inputs.nixpkgs.follows = "nixpkgs-unstable"; 27 inputs.nixpkgs.follows = "nixpkgs"; 28 inputs.nixpkgs-stable.follows = "nixpkgs"; 29 }; 30 31 iamb = { 32 url = "github:ulyssa/iamb/v0.0.11-alpha.1"; 33 inputs.nixpkgs.follows = "nixpkgs"; 34 }; 35 36 agenix = { 37 url = "github:ryantm/agenix"; 38 inputs.nixpkgs.follows = "nixpkgs"; 39 inputs.systems.follows = "systems"; 40 inputs.home-manager.follows = "home-manager"; 41 }; 42 }; 43 44 outputs = 45 { self, nixpkgs, ... }@inputs: 46 let 47 inherit (nixpkgs) lib; 48 system = "x86_64-linux"; 49 50 mkHost = 51 name: extraModules: 52 lib.nixosSystem { 53 specialArgs = { inherit inputs; }; 54 modules = [ 55 ./modules/base 56 ./systems/${name} 57 ] 58 ++ extraModules; 59 }; 60 61 mkDesktopHost = name: mkHost name [ ./modules/desktop ]; 62 in 63 { 64 nixosConfigurations = { 65 miku = mkDesktopHost "miku"; 66 hatsune = mkDesktopHost "hatsune"; 67 seber = mkHost "seber" [ ]; 68 }; 69 70 formatter.${system} = nixpkgs.legacyPackages.${system}.callPackage ./formatter.nix { }; 71 }; 72}