Compare commits
No commits in common. "286e6d757810fc0d9375c3551d5443cf1ed05968" and "733985c773eae25aae70bf98c2715eb6e21abdc0" have entirely different histories.
286e6d7578
...
733985c773
3 changed files with 1 additions and 54 deletions
|
@ -23,9 +23,7 @@ with lib;
|
||||||
|
|
||||||
gimoji
|
gimoji
|
||||||
|
|
||||||
#tldr
|
tldr
|
||||||
tealdeer
|
|
||||||
navi # cheatsheet manager
|
|
||||||
|
|
||||||
bandwhich # todo : put this to common/networking.nix
|
bandwhich # todo : put this to common/networking.nix
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,6 @@
|
||||||
./ssh-chungus.nix
|
./ssh-chungus.nix
|
||||||
./ssh-cherry.nix
|
./ssh-cherry.nix
|
||||||
|
|
||||||
./ferdium.nix
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
#time.timeZone = lib.mkForce "Asia/Bangkok";
|
#time.timeZone = lib.mkForce "Asia/Bangkok";
|
||||||
|
|
|
@ -1,49 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
with lib;
|
|
||||||
let
|
|
||||||
ferdium = pkgs.writeShellScriptBin "ferdium" ''
|
|
||||||
/var/run/wrappers/bin/sudo -u ferdium -i ${pkgs.ferdium}/bin/ferdium $@
|
|
||||||
'';
|
|
||||||
in
|
|
||||||
|
|
||||||
{
|
|
||||||
|
|
||||||
environment.systemPackages = [
|
|
||||||
|
|
||||||
ferdium
|
|
||||||
(pkgs.makeDesktopItem {
|
|
||||||
terminal = false;
|
|
||||||
exec = "${ferdium}/bin/ferdium";
|
|
||||||
name = "ferdium";
|
|
||||||
desktopName = "Ferdium";
|
|
||||||
icon = "${pkgs.ferdium}/share/icons/hicolor/512x512/apps/ferdium.png";
|
|
||||||
})
|
|
||||||
|
|
||||||
pkgs.xorg.xhost
|
|
||||||
];
|
|
||||||
|
|
||||||
users.users.ferdium = {
|
|
||||||
isNormalUser = false;
|
|
||||||
isSystemUser = true;
|
|
||||||
home = "/home/ferdium";
|
|
||||||
createHome = true;
|
|
||||||
extraGroups = [
|
|
||||||
"audio"
|
|
||||||
"input"
|
|
||||||
"video"
|
|
||||||
"pipewire"
|
|
||||||
];
|
|
||||||
group = "ferdium";
|
|
||||||
shell = pkgs.bashInteractive;
|
|
||||||
};
|
|
||||||
users.groups.ferdium = { };
|
|
||||||
|
|
||||||
security.sudo.extraConfig = ''
|
|
||||||
${config.users.extraUsers.mainUser.name} ALL=(ferdium) NOPASSWD: ALL
|
|
||||||
'';
|
|
||||||
}
|
|
Loading…
Reference in a new issue