new modlues

This commit is contained in:
joy 2024-07-09 22:20:44 +02:00
parent 454fc859ab
commit 57c8a52bd2
7 changed files with 63 additions and 46 deletions

View file

@ -0,0 +1,12 @@
{ pkgs, ... }:
{
boot.binfmt.registrations.appimage = {
wrapInterpreterInShell = false;
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
recognitionType = "magic";
offset = 0;
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
magicOrExtension = ''\x7fELF....AI\x02'';
};
}

6
modules/blue/default.nix Normal file
View file

@ -0,0 +1,6 @@
{ ... }:
{
services.blueman.enable = true;
hardware.bluetooth.enable = true;
}

View file

@ -7,5 +7,10 @@
./misc ./misc
./gdm ./gdm
./stylix ./stylix
./blue
./services
./syncthing
./gpg
./appimage
]; ];
} }

10
modules/gpg/default.nix Normal file
View file

@ -0,0 +1,10 @@
{ pkgs, ... }:
{
services.pcscd.enable = true;
programs.gnupg.agent = {
enable = true;
pinentryPackage = pkgs.pinentry-curses;
enableSSHSupport = true;
};
}

View file

@ -1,63 +1,28 @@
{ inputs, pkgs, ... }: { inputs, pkgs, ... }:
{ {
services.blueman.enable = true;
hardware.bluetooth.enable = true;
virtualisation.docker.rootless.enable = true;
virtualisation.docker.enable = true;
nixpkgs.config.allowUnfree = true;
programs.steam.enable = true;
services = {
syncthing = {
enable = true;
user = "joy";
dataDir = "/home/joy/";
configDir = "/home/joy/.config/syncthing";
};
};
services.pcscd.enable = true;
programs.gnupg.agent = {
enable = true;
pinentryPackage = pkgs.pinentry-curses;
enableSSHSupport = true;
};
programs.hyprland.enable = true;
users.defaultUserShell = pkgs.zsh;
programs.zsh.enable = true;
home-manager = { home-manager = {
extraSpecialArgs = {inherit inputs;}; extraSpecialArgs = {inherit inputs;};
users = { users = {
"joy" = import ./../../home; "joy" = import ./../../home;
}; };
}; };
users.users.joy = { users.users.joy = {
isNormalUser = true; isNormalUser = true;
description = "joy"; description = "joy";
extraGroups = [ "wheel" "docker" ]; extraGroups = [ "wheel" "docker" ];
};
nix.settings.experimental-features = [ "nix-command" "flakes"];
time.timeZone = "Europe/Zurich";
services.devmon.enable = true;
services.udisks2.enable = true;
services.gvfs.enable = true;
programs.nix-ld.enable = true;
boot.binfmt.registrations.appimage = {
wrapInterpreterInShell = false;
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
recognitionType = "magic";
offset = 0;
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
magicOrExtension = ''\x7fELF....AI\x02'';
}; };
virtualisation.docker.rootless.enable = true;
virtualisation.docker.enable = true;
nixpkgs.config.allowUnfree = true;
programs.steam.enable = true;
programs.hyprland.enable = true;
users.defaultUserShell = pkgs.zsh;
programs.zsh.enable = true;
nix.settings.experimental-features = [ "nix-command" "flakes"];
programs.nix-ld.enable = true;
time.timeZone = "Europe/Zurich";
system.stateVersion = "23.11"; system.stateVersion = "23.11";
} }

View file

@ -0,0 +1,7 @@
{ ... }:
{
services.devmon.enable = true;
services.udisks2.enable = true;
services.gvfs.enable = true;
}

View file

@ -0,0 +1,12 @@
{ ... }:
{
services = {
syncthing = {
enable = true;
user = "joy";
dataDir = "/home/joy/";
configDir = "/home/joy/.config/syncthing";
};
};
}