Compare commits
20 Commits
c0f9f1d622
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
53768f944e
|
|||
|
463ae390de
|
|||
|
bbb1edf8c3
|
|||
|
6bd40ea2f8
|
|||
|
002a3da231
|
|||
|
fc25c630dd
|
|||
|
62b5c50bfb
|
|||
|
6726127aed
|
|||
|
3571635616
|
|||
|
c2afc4d5ac
|
|||
|
9abb5ea152
|
|||
|
c8641c369b
|
|||
|
f202924393
|
|||
|
a8dcdeef92
|
|||
|
2f806f21e5
|
|||
|
be1f305207
|
|||
|
a24605849a
|
|||
|
a3f1352aeb
|
|||
|
6fb95c5a84
|
|||
|
10c5f79fab
|
98
flake.lock
generated
98
flake.lock
generated
@@ -1,15 +1,34 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"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": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1749154018,
|
"lastModified": 1756679287,
|
||||||
"narHash": "sha256-gjN3j7joRvT3a8Zgcylnd4NFsnXeDBumqiu4HmY1RIg=",
|
"narHash": "sha256-Xd1vOeY9ccDf5VtVK12yM0FS6qqvfUop8UQlxEB+gTQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "7aae0ee71a17b19708b93b3ed448a1a0952bf111",
|
"rev": "07fc025fe10487dd80f2ec694f1cd790e752d0e8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -21,11 +40,11 @@
|
|||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1750431636,
|
"lastModified": 1757103352,
|
||||||
"narHash": "sha256-vnzzBDbCGvInmfn2ijC4HsIY/3W1CWbwS/YQoFgdgPg=",
|
"narHash": "sha256-PtT7ix43ss8PONJ1VJw3f6t2yAoGH+q462Sn8lrmWmk=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "1552a9f4513f3f0ceedcf90320e48d3d47165712",
|
"rev": "11b2a10c7be726321bb854403fdeec391e798bf0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -36,41 +55,70 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1749024892,
|
"lastModified": 1760105160,
|
||||||
"narHash": "sha256-OGcDEz60TXQC+gVz5sdtgGJdKVYr6rwdzQKuZAJQpCA=",
|
"narHash": "sha256-oYYalpFIVeDolg/zpkPkKk8mBuvnj/lUE3/K7OuTOwk=",
|
||||||
"owner": "NixOS",
|
"rev": "5da4a26309e796daa7ffca72df93dbe53b8164c7",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://releases.nixos.org/nixos/25.05/nixos-25.05.810995.5da4a26309e7/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",
|
"repo": "nixpkgs",
|
||||||
"rev": "8f1b52b04f2cb6e5ead50bd28d76528a2f0380ef",
|
"rev": "5d91ff97e777cd2bfb8cb108907e49abcea939f4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "transcaffeine",
|
||||||
"ref": "nixos-25.05",
|
"ref": "nexus/3.81.1",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs-local": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1750259320,
|
"lastModified": 1757168979,
|
||||||
"narHash": "sha256-H8J4H2XCIMEJ5g6fZ179QfQvsc2dUqhqfBjC8RAHNRY=",
|
"narHash": "sha256-abp5DZtyu8idvMbPbEpBfdsxmhnNo/ud8hZ0KsbvAqs=",
|
||||||
"owner": "NixOS",
|
"ref": "refs/heads/cinny/4.9.1",
|
||||||
"repo": "nixpkgs",
|
"rev": "fc2627665df4f815f2409effcaf7bb0f427e303c",
|
||||||
"rev": "9ba04bda9249d5d5e5238303c9755de5a49a79c5",
|
"revCount": 855244,
|
||||||
"type": "github"
|
"type": "git",
|
||||||
|
"url": "file:/home/transcaffeine/git/transcaffeine/nixpkgs"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"type": "git",
|
||||||
"ref": "nixos-25.05",
|
"url": "file:/home/transcaffeine/git/transcaffeine/nixpkgs"
|
||||||
"repo": "nixpkgs",
|
}
|
||||||
"type": "github"
|
},
|
||||||
|
"nixpkgs-unstable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1760252326,
|
||||||
|
"narHash": "sha256-5v32B25kSE++E+KtP4DO687r/AlWL9qOlOjtYyfcDSw=",
|
||||||
|
"rev": "66e5020bfe0af40ffa127426f8405edbdadbb40b",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://releases.nixos.org/nixos/unstable-small/nixos-25.11pre876242.66e5020bfe0a/nixexprs.tar.xz"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://channels.nixos.org/nixos-unstable-small/nixexprs.tar.xz"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"dotfiles": "dotfiles",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs",
|
||||||
|
"nixpkgs-forked": "nixpkgs-forked",
|
||||||
|
"nixpkgs-local": "nixpkgs-local",
|
||||||
|
"nixpkgs-unstable": "nixpkgs-unstable"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
23
flake.nix
23
flake.nix
@@ -1,11 +1,23 @@
|
|||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
nixpkgs.url = "https://channels.nixos.org/nixos-25.05/nixexprs.tar.xz";
|
||||||
home-manager.url = "github:nix-community/home-manager/release-25.05";
|
nixpkgs-unstable.url = "https://channels.nixos.org/nixos-unstable-small/nixexprs.tar.xz";
|
||||||
|
nixpkgs-forked.url = "github:transcaffeine/nixpkgs/nexus/3.81.1";
|
||||||
|
nixpkgs-local = {
|
||||||
|
url = "git+file:/home/transcaffeine/git/transcaffeine/nixpkgs";
|
||||||
|
};
|
||||||
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager/release-25.05";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
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, ... }: {
|
outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, ... }: {
|
||||||
nixosConfigurations.affogato = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.affogato = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
@@ -13,5 +25,10 @@
|
|||||||
];
|
];
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
};
|
};
|
||||||
|
nixosConfigurations.nixos-unstable = nixpkgs-unstable.lib.nixosSystem {
|
||||||
|
modules = [
|
||||||
|
./hosts/nixos-unstable
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,11 +11,15 @@
|
|||||||
../../users/leona
|
../../users/leona
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# add nixpkgs overlay
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(import ../../pkgs)
|
||||||
|
];
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_6_13;
|
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
# disable panel self refresh for i915
|
# disable panel self refresh for i915
|
||||||
#"i915.enable_psr=0"
|
#"i915.enable_psr=0"
|
||||||
|
|||||||
@@ -13,18 +13,29 @@
|
|||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems = {
|
||||||
{ device = "/dev/disk/by-uuid/34d0b26e-8d69-4388-bf94-67e44669cdd8";
|
"/" = {
|
||||||
|
device = "/dev/disk/by-uuid/34d0b26e-8d69-4388-bf94-67e44669cdd8";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
"/boot" = {
|
||||||
fileSystems."/boot" =
|
device = "/dev/disk/by-uuid/3B4B-0489";
|
||||||
{ device = "/dev/disk/by-uuid/3B4B-0489";
|
|
||||||
fsType = "vfat";
|
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 =
|
swapDevices = [
|
||||||
[ { device = "/dev/disk/by-uuid/22e2d822-7f26-4246-a28e-b10a116f2818"; }
|
{
|
||||||
|
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";
|
boot.initrd.luks.devices."coffee".device = "/dev/disk/by-uuid/e24d653d-df2d-472b-97c3-653ee3169b1c";
|
||||||
|
|||||||
57
hosts/nixos-unstable/configuration.nix
Normal file
57
hosts/nixos-unstable/configuration.nix
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# Use the systemd-boot EFI boot loader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
# Use latest kernel.
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
|
networking.hostName = "nixos-unstable"; # Define your hostname.
|
||||||
|
|
||||||
|
# Set your time zone.
|
||||||
|
time.timeZone = "Europe/Amsterdam";
|
||||||
|
|
||||||
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
users.mutableUsers = false;
|
||||||
|
users.users.root.hashedPassword = "$y$j9T$i4Yx7PqpLH9bPaNb4SVLm/$dv2gVHCHiRZv.Y00rbNx4QeIExunnfHp57WEnh8qLF1";
|
||||||
|
users.users.alice = {
|
||||||
|
isNormalUser = true;
|
||||||
|
hashedPassword = "";
|
||||||
|
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
||||||
|
packages = with pkgs; [
|
||||||
|
tree
|
||||||
|
];
|
||||||
|
};
|
||||||
|
users.users.bob = {
|
||||||
|
isNormalUser = true;
|
||||||
|
createHome = false;
|
||||||
|
group = "builders";
|
||||||
|
description = "Bob the builder";
|
||||||
|
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPMChr3iWCl4ahoVsm/UyUQut9p0QIfqTsncsDkgBoRU carbon"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
users.groups.builders = {};
|
||||||
|
|
||||||
|
nix.settings.trusted-users = [ "remotebuild" ];
|
||||||
|
|
||||||
|
services.nscd = {
|
||||||
|
enableNsncd = true;
|
||||||
|
workerThreads = 2;
|
||||||
|
};
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
];
|
||||||
|
|
||||||
|
# Open ports in the firewall.
|
||||||
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
|
# Or disable the firewall altogether.
|
||||||
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
|
system.stateVersion = "25.05"; # Did you read the comment?
|
||||||
|
|
||||||
|
}
|
||||||
7
hosts/nixos-unstable/default.nix
Normal file
7
hosts/nixos-unstable/default.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ inputs, pkgs, ...}: {
|
||||||
|
imports = [
|
||||||
|
./hardware-configuration.nix
|
||||||
|
./configuration.nix
|
||||||
|
../../profiles/base
|
||||||
|
];
|
||||||
|
}
|
||||||
35
hosts/nixos-unstable/hardware-configuration.nix
Normal file
35
hosts/nixos-unstable/hardware-configuration.nix
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.initrd.systemd.enable = true;
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/d696e6e0-64f1-4cb5-9ac6-57a3fd4634cc";
|
||||||
|
fsType = "btrfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/FA31-9186";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.enp1s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
}
|
||||||
@@ -1,10 +1,7 @@
|
|||||||
{ inputs, pkgs, ...}: {
|
{ inputs, pkgs, ...}: {
|
||||||
nixpkgs.overlays = [
|
|
||||||
(import ../../pkgs)
|
|
||||||
];
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
nixpkgs.flake.setFlakeRegistry = true;
|
||||||
nix.settings.trusted-users = [ "root" "@wheel" ];
|
nix.settings.trusted-users = [ "root" "@wheel" ];
|
||||||
nix.registry.nixpkgs.flake = inputs.nixpkgs;
|
|
||||||
nix.extraOptions = ''
|
nix.extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
@@ -23,8 +20,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
environment.shellAliases = {
|
environment.shellAliases = {
|
||||||
"nixos-switch" = "sudo nixos-rebuild switch --impure --flake .#";
|
"lah" = "ls --color=auto -lah";
|
||||||
"nom-affogato" = "nom build .#nixosConfigurations.affogato.config.system.build.toplevel --impure";
|
|
||||||
};
|
};
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
EDITOR = "vim";
|
EDITOR = "vim";
|
||||||
@@ -41,9 +37,26 @@
|
|||||||
bind.dnsutils
|
bind.dnsutils
|
||||||
openssl
|
openssl
|
||||||
curl
|
curl
|
||||||
|
wget
|
||||||
htop
|
htop
|
||||||
pinentry
|
usbutils
|
||||||
gnupg
|
pciutils
|
||||||
sequoia
|
|
||||||
];
|
];
|
||||||
|
programs.bash.promptInit = ''
|
||||||
|
# Provide a nice prompt if the terminal supports it.
|
||||||
|
if [ "$TERM" != "dumb" ] || [ -n "$INSIDE_EMACS" ]; then
|
||||||
|
PROMPT_COLOR="38;5;253m"
|
||||||
|
PATH_PROMPT_COLOR="38;5;199m"
|
||||||
|
((UID)) && PROMPT_COLOR="1;32m"
|
||||||
|
if [ -n "$INSIDE_EMACS" ]; then
|
||||||
|
# Emacs term mode doesn't support xterm title escape sequence (\e]0;)
|
||||||
|
PS1="[\[\033[$PROMPT_COLOR\]\u\033[0m@\H:\033[1m\033[$PATH_PROMPT_COLOR\w\a\]\[\033[0m\]]\$ "
|
||||||
|
else
|
||||||
|
PS1="[\[\033[$PROMPT_COLOR\]\u\033[0m@\H:\033[1m\033[$PATH_PROMPT_COLOR\w\a\]\[\033[0m\]]\$ "
|
||||||
|
fi
|
||||||
|
if test "$TERM" = "xterm"; then
|
||||||
|
PS1="\[\033]2;\h:\u:\w\007\]$PS1"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,4 +2,5 @@
|
|||||||
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
|
environment.shellAliases = {
|
||||||
|
"nixos-switch" = "sudo nixos-rebuild switch --impure --flake .#";
|
||||||
|
"nom-affogato" = "nom build .#nixosConfigurations.affogato.config.system.build.toplevel --impure";
|
||||||
|
};
|
||||||
users.users.transcaffeine = {
|
users.users.transcaffeine = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" ];
|
extraGroups = [ "wheel" ];
|
||||||
@@ -6,6 +10,9 @@
|
|||||||
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCnjrKWYc0bcIsTkdpyC+yAsxSeY9M1WxVDNm3I/R3BYqyvfFuzJMQyh5APhM52yKGMN9UOuJPNPz0C4P6EY3iC3ZqUHFJ6ILrZZxdLZBVxdy2F19Xv6XcZkZxLpRKWapVFECF5z/Bi0rg1uzNRyrHjfZWcHfHIvlqxUYiitvvTbbSMQKqEV8wlnshSzBoYzaKtV1+crwlgz6wCnXq8HIupEeWfUc9kc+zunpYnuHnU5Z3HhzQGBuIiPoVritDjOo7qYREftV4qQ15xFWdezsMZlR15edwZeyNdAEx044QgaGddC8uEMoi5cp4APIqH1cEkIvSU6Y+esdgZ4CHU6M5G5ub5PTT2TaKoUMLLFtpW6QImjVApixFTHWR7tUhqInplWWLqvviS4MoI1ppxgcDUg/bgPdeDBsoRkbESr2uT8ResNi9DlPlN2rlUjlb28awzHm7agFhwfPQZ1afnFSUh0tTFz1WeR7xIGhxR1xXc8sapJhgLnYYWpR2NaJzbYYdk7CWW/3rgEsJem7Kvll6HevnFgRP/uVhEyGZl9hw+tECzvwB/LEmQ/4raDMxqOB9XO9kusJX/jTnQIObrFubfKn3ToXlYbQxZX9+QobANvQ8huILz1bBeH8aKjf9RXu+j4VNyoCKhzU/v0MIdRCsgVWgjuYXMGRo0MFMFyMqQiw== transcaffeine-openpgp:0x353A3E5B"
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCnjrKWYc0bcIsTkdpyC+yAsxSeY9M1WxVDNm3I/R3BYqyvfFuzJMQyh5APhM52yKGMN9UOuJPNPz0C4P6EY3iC3ZqUHFJ6ILrZZxdLZBVxdy2F19Xv6XcZkZxLpRKWapVFECF5z/Bi0rg1uzNRyrHjfZWcHfHIvlqxUYiitvvTbbSMQKqEV8wlnshSzBoYzaKtV1+crwlgz6wCnXq8HIupEeWfUc9kc+zunpYnuHnU5Z3HhzQGBuIiPoVritDjOo7qYREftV4qQ15xFWdezsMZlR15edwZeyNdAEx044QgaGddC8uEMoi5cp4APIqH1cEkIvSU6Y+esdgZ4CHU6M5G5ub5PTT2TaKoUMLLFtpW6QImjVApixFTHWR7tUhqInplWWLqvviS4MoI1ppxgcDUg/bgPdeDBsoRkbESr2uT8ResNi9DlPlN2rlUjlb28awzHm7agFhwfPQZ1afnFSUh0tTFz1WeR7xIGhxR1xXc8sapJhgLnYYWpR2NaJzbYYdk7CWW/3rgEsJem7Kvll6HevnFgRP/uVhEyGZl9hw+tECzvwB/LEmQ/4raDMxqOB9XO9kusJX/jTnQIObrFubfKn3ToXlYbQxZX9+QobANvQ8huILz1bBeH8aKjf9RXu+j4VNyoCKhzU/v0MIdRCsgVWgjuYXMGRo0MFMFyMqQiw== transcaffeine-openpgp:0x353A3E5B"
|
||||||
];
|
];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
pinentry
|
||||||
|
gnupg
|
||||||
|
sequoia
|
||||||
pass
|
pass
|
||||||
spotify
|
spotify
|
||||||
gimp-with-plugins
|
gimp-with-plugins
|
||||||
|
|||||||
26
users/transcaffeine/home-manager/darkman.nix
Normal file
26
users/transcaffeine/home-manager/darkman.nix
Normal 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}";
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,19 +1,12 @@
|
|||||||
{ lib, pkgs, ... }: {
|
{ lib, pkgs, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
|
./darkman.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
./gnupg.nix
|
./gnupg.nix
|
||||||
];
|
];
|
||||||
home.stateVersion = "24.11";
|
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;
|
home.preferXdgDirectories = true;
|
||||||
programs.firefox = import ./firefox.nix { inherit lib; };
|
programs.firefox = import ./firefox.nix { inherit lib; };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
{ lib, config, ... }:
|
{ inputs, lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
repo = (builtins.fetchGit {
|
dotfileRepo = inputs.dotfiles;
|
||||||
url = "https://git.finally.coffee/transcaffeine/dotfiles.git";
|
|
||||||
ref = "main";
|
|
||||||
shallow = true;
|
|
||||||
});
|
|
||||||
utils = import ../../../utils { inherit lib; };
|
utils = import ../../../utils { inherit lib; };
|
||||||
in {
|
in {
|
||||||
programs.gpg = let
|
programs.gpg = let
|
||||||
@@ -16,7 +12,7 @@ in {
|
|||||||
}) (
|
}) (
|
||||||
builtins.filter (value: value != "") (
|
builtins.filter (value: value != "") (
|
||||||
lib.splitString "\n" (
|
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 != "") (
|
builtins.filter (v: v != "") (
|
||||||
lib.splitString "\n" (
|
lib.splitString "\n" (
|
||||||
lib.readFile (repo.outPath + "/config/gnupg/gpg-agent.conf")
|
lib.readFile (dotfileRepo.outPath + "/config/gnupg/gpg-agent.conf")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user