Compare commits

...

15 Commits

Author SHA1 Message Date
0ed2141788 update(flake): inputs 2025-11-07 22:50:39 +01:00
29dcddcdfb chore(hosts/nixos-unstable): add nixpkgs-review, remove fork-only workerThread setting 2025-11-07 22:33:44 +01:00
e60b510abc fix(profiles/graphical): update usbmuxd service to use usbmuxd2 to re-enable tethering 2025-11-07 22:32:40 +01:00
5cc4d2cd65 feat(hosts/affogato): enable docker 2025-11-07 22:32:00 +01:00
53768f944e chore(users/transcaffeine): use xdg folders (xdg.enable = true) 2025-10-14 18:48:40 +02:00
463ae390de chore(affogato): extra partitions for /home and /nix/store 2025-10-14 18:48:01 +02:00
bbb1edf8c3 update(flake/dotfiles): use newest version which includes kde-theme-switching 2025-10-14 18:47:12 +02:00
6bd40ea2f8 update(flake): switch nixpkgs-unstable input to flake-compatible channel tarballs 2025-10-12 11:45:07 +02:00
002a3da231 update(flake): nixpkgs-25.05, switch to flake-compatible channel tarballs 2025-10-12 11:43:33 +02:00
fc25c630dd chore(flake): remove unlocked input 'dotfiles-local' preventing flake locking 2025-10-12 11:41:56 +02:00
62b5c50bfb feat(users/transcaffeine): configure darkman using home-manager from dotfiles 2025-09-07 15:08:40 +02:00
6726127aed chore(users/transcaffeine): replace impure fetchgit with raw flake input 2025-09-07 13:45:30 +02:00
3571635616 feat(profiles/home-manager): supply special arg 'inputs' to home-manager 2025-09-07 13:34:25 +02:00
c2afc4d5ac update(flake): add dotfiles repo as raw input 2025-09-07 13:33:43 +02:00
9abb5ea152 update(flake): nixpkgs inputs (local, fork, unstable) 2025-09-07 11:15:17 +02:00
10 changed files with 116 additions and 54 deletions

73
flake.lock generated
View File

@@ -1,5 +1,22 @@
{
"nodes": {
"dotfiles": {
"flake": false,
"locked": {
"lastModified": 1757262504,
"narHash": "sha256-8Hxs9m+vu/DwZtorQOFCGTld0Wlz+QKLFPjLX7J/JDU=",
"ref": "main",
"rev": "7c9567c880f414054fc427d8a2bb0c3a048104ee",
"revCount": 14,
"type": "git",
"url": "https://git.finally.coffee/transcaffeine/dotfiles.git"
},
"original": {
"ref": "main",
"type": "git",
"url": "https://git.finally.coffee/transcaffeine/dotfiles.git"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@@ -7,11 +24,11 @@
]
},
"locked": {
"lastModified": 1756679287,
"narHash": "sha256-Xd1vOeY9ccDf5VtVK12yM0FS6qqvfUop8UQlxEB+gTQ=",
"lastModified": 1758463745,
"narHash": "sha256-uhzsV0Q0I9j2y/rfweWeGif5AWe0MGrgZ/3TjpDYdGA=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "07fc025fe10487dd80f2ec694f1cd790e752d0e8",
"rev": "3b955f5f0a942f9f60cdc9cacb7844335d0f21c3",
"type": "github"
},
"original": {
@@ -23,11 +40,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1757103352,
"narHash": "sha256-PtT7ix43ss8PONJ1VJw3f6t2yAoGH+q462Sn8lrmWmk=",
"lastModified": 1762463231,
"narHash": "sha256-hv1mG5j5PTbnWbtHHomzTus77pIxsc4x8VrMjc7+/YE=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "11b2a10c7be726321bb854403fdeec391e798bf0",
"rev": "52113c4f5cfd1e823001310e56d9c8d0699a6226",
"type": "github"
},
"original": {
@@ -38,41 +55,53 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1757020766,
"narHash": "sha256-PLoSjHRa2bUbi1x9HoXgTx2AiuzNXs54c8omhadyvp0=",
"owner": "NixOS",
"lastModified": 1762537618,
"narHash": "sha256-aIePlSVgncfoNZHebbu/yfdhMwkzkeCX08zye8PvQmY=",
"rev": "6faeb062ee4cf4f105989d490831713cc5a43ee1",
"type": "tarball",
"url": "https://releases.nixos.org/nixos/25.05/nixos-25.05.812554.6faeb062ee4c/nixexprs.tar.xz"
},
"original": {
"type": "tarball",
"url": "https://channels.nixos.org/nixos-25.05/nixexprs.tar.xz"
}
},
"nixpkgs-forked": {
"locked": {
"lastModified": 1751998018,
"narHash": "sha256-JHVI60B3/cN3a0JDfslramsO056ig5wMQTGmgO9eLWQ=",
"owner": "transcaffeine",
"repo": "nixpkgs",
"rev": "fe83bbdde2ccdc2cb9573aa846abe8363f79a97a",
"rev": "5d91ff97e777cd2bfb8cb108907e49abcea939f4",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-25.05",
"owner": "transcaffeine",
"ref": "nexus/3.81.1",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1756787288,
"narHash": "sha256-rw/PHa1cqiePdBxhF66V7R+WAP8WekQ0mCDG4CFqT8Y=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d0fc30899600b9b3466ddb260fd83deb486c32f1",
"type": "github"
"lastModified": 1762497860,
"narHash": "sha256-Vp9YNVTUPUSei4NRv0a3IDNGOEnOO5OpiqTZeEEbGzs=",
"rev": "e0ed069e96dab798508a236c621f685fcb9099d6",
"type": "tarball",
"url": "https://releases.nixos.org/nixos/unstable-small/nixos-25.11pre890878.e0ed069e96da/nixexprs.tar.xz"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
"type": "tarball",
"url": "https://channels.nixos.org/nixos-unstable-small/nixexprs.tar.xz"
}
},
"root": {
"inputs": {
"dotfiles": "dotfiles",
"home-manager": "home-manager",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"nixpkgs-forked": "nixpkgs-forked",
"nixpkgs-unstable": "nixpkgs-unstable"
}
}

View File

@@ -1,14 +1,17 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
# nixpkgs-unstable.url = "github:transcaffeine/nixpkgs/nexus/3.81.1";
# nixpkgs-unstable.url = "git+file:/home/transcaffeine/git/transcaffeine/nixpkgs";
nixpkgs.url = "https://channels.nixos.org/nixos-25.05/nixexprs.tar.xz";
nixpkgs-unstable.url = "https://channels.nixos.org/nixos-unstable-small/nixexprs.tar.xz";
nixpkgs-forked.url = "github:transcaffeine/nixpkgs/nexus/3.81.1";
home-manager = {
url = "github:nix-community/home-manager/release-25.05";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware";
dotfiles = {
url = "git+https://git.finally.coffee/transcaffeine/dotfiles.git?ref=main";
flake = false;
};
};
outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, ... }: {

View File

@@ -58,6 +58,7 @@
services.tailscale.enable = true;
services.blueman.enable = true;
services.power-profiles-daemon.enable = true;
virtualisation.docker.enable = true;
# TODO: delete this later
system.stateVersion = "23.05"; # Did you read the comment?

View File

@@ -13,18 +13,29 @@
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/34d0b26e-8d69-4388-bf94-67e44669cdd8";
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/34d0b26e-8d69-4388-bf94-67e44669cdd8";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/3B4B-0489";
"/boot" = {
device = "/dev/disk/by-uuid/3B4B-0489";
fsType = "vfat";
};
"/home" = {
device = "/dev/disk/by-uuid/a836d70d-ee4d-4973-b3c0-2888d0a60095";
fsType = "btrfs";
};
"/nix/store" = {
device = "/dev/disk/by-uuid/720dd78e-7070-4d5f-a550-cd03bdde93bd";
fsType = "xfs";
};
};
swapDevices =
[ { device = "/dev/disk/by-uuid/22e2d822-7f26-4246-a28e-b10a116f2818"; }
swapDevices = [
{
device = "/dev/disk/by-uuid/22e2d822-7f26-4246-a28e-b10a116f2818";
}
];
boot.initrd.luks.devices."coffee".device = "/dev/disk/by-uuid/e24d653d-df2d-472b-97c3-653ee3169b1c";

View File

@@ -22,6 +22,7 @@
extraGroups = [ "wheel" ]; # Enable sudo for the user.
packages = with pkgs; [
tree
nixpkgs-review
];
};
users.users.bob = {
@@ -41,7 +42,6 @@
services.nscd = {
enableNsncd = true;
workerThreads = 2;
};
environment.systemPackages = with pkgs; [
];
@@ -53,5 +53,4 @@
# networking.firewall.enable = false;
system.stateVersion = "25.05"; # Did you read the comment?
}

View File

@@ -6,7 +6,10 @@
pulse.enable = true;
};
services.usbmuxd.enable = true;
services.usbmuxd = {
enable = true;
package = pkgs.usbmuxd2;
};
environment.systemPackages = with pkgs; [
firefox

View File

@@ -2,4 +2,5 @@
imports = [ inputs.home-manager.nixosModules.home-manager ];
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit inputs; };
}

View File

@@ -0,0 +1,26 @@
{
inputs,
lib,
...
}:
let
genAttrs' = xs: f: lib.listToAttrs(lib.map f xs);
in {
services.darkman = {
enable = true;
settings = {
lat = 49.0800;
lng = 8.23300;
portal = true;
dbusserver = true;
};
};
home.file = genAttrs' [ "local/share/light-mode.d" "local/share/dark-mode.d" ] (
path:
lib.nameValuePair (".${path}") {
source = lib.concatStringsSep "/" [ inputs.dotfiles path ];
target = ".${path}";
}
);
}

View File

@@ -1,19 +1,12 @@
{ lib, pkgs, ... }: {
imports = [
./darkman.nix
./git.nix
./gnupg.nix
];
home.stateVersion = "24.11";
services.darkman = {
enable = true;
settings = {
lat = 49.0800;
lng = 8.23300;
portal = true;
dbusserver = true;
};
};
xdg.enable = true;
home.preferXdgDirectories = true;
programs.firefox = import ./firefox.nix { inherit lib; };
}

View File

@@ -1,11 +1,7 @@
{ lib, config, ... }:
{ inputs, lib, config, ... }:
let
repo = (builtins.fetchGit {
url = "https://git.finally.coffee/transcaffeine/dotfiles.git";
ref = "main";
shallow = true;
});
dotfileRepo = inputs.dotfiles;
utils = import ../../../utils { inherit lib; };
in {
programs.gpg = let
@@ -16,7 +12,7 @@ in {
}) (
builtins.filter (value: value != "") (
lib.splitString "\n" (
lib.readFile (repo.outPath + "/config/gnupg/gpg.conf")
lib.readFile (dotfileRepo + "/config/gnupg/gpg.conf")
)
)
)
@@ -36,7 +32,7 @@ in {
}) (
builtins.filter (v: v != "") (
lib.splitString "\n" (
lib.readFile (repo.outPath + "/config/gnupg/gpg-agent.conf")
lib.readFile (dotfileRepo.outPath + "/config/gnupg/gpg-agent.conf")
)
)
)