new modlues
This commit is contained in:
parent
3af052cd18
commit
bed26a204c
12
modules/appimage/default.nix
Normal file
12
modules/appimage/default.nix
Normal 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
6
modules/blue/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
services.blueman.enable = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
}
|
|
@ -7,5 +7,10 @@
|
|||
./misc
|
||||
./gdm
|
||||
./stylix
|
||||
./blue
|
||||
./services
|
||||
./syncthing
|
||||
./gpg
|
||||
./appimage
|
||||
];
|
||||
}
|
||||
|
|
10
modules/gpg/default.nix
Normal file
10
modules/gpg/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
services.pcscd.enable = true;
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
pinentryPackage = pkgs.pinentry-curses;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
}
|
|
@ -1,63 +1,28 @@
|
|||
{ 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 = {
|
||||
extraSpecialArgs = {inherit inputs;};
|
||||
users = {
|
||||
"joy" = import ./../../home;
|
||||
};
|
||||
};
|
||||
|
||||
users.users.joy = {
|
||||
isNormalUser = true;
|
||||
description = "joy";
|
||||
extraGroups = [ "wheel" "docker" ];
|
||||
};
|
||||
|
||||
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"];
|
||||
|
||||
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'';
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/Zurich";
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
}
|
||||
|
|
7
modules/services/default.nix
Normal file
7
modules/services/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
services.devmon.enable = true;
|
||||
services.udisks2.enable = true;
|
||||
services.gvfs.enable = true;
|
||||
}
|
12
modules/syncthing/default.nix
Normal file
12
modules/syncthing/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
services = {
|
||||
syncthing = {
|
||||
enable = true;
|
||||
user = "joy";
|
||||
dataDir = "/home/joy/";
|
||||
configDir = "/home/joy/.config/syncthing";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue