update and small fixes
This commit is contained in:
parent
d61eff2280
commit
4c8f2b0bcc
72
flake.lock
generated
72
flake.lock
generated
@ -653,11 +653,11 @@
|
|||||||
"utils": "utils_2"
|
"utils": "utils_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1679480702,
|
"lastModified": 1679786039,
|
||||||
"narHash": "sha256-npuRD61YmxUPitI1TqKwlxLrU6iGl5E+BPT196LgUDo=",
|
"narHash": "sha256-VNjswu0Q4bZOkWNuc0+dHvRdjUCj+MnDlRfw/Q0R3vI=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "363c46b2480f1b73ec37cf68caac61f5daa82a2e",
|
"rev": "cf662b6c98a0da81e06066fff0ecf9cbd4627727",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -674,11 +674,11 @@
|
|||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1679505046,
|
"lastModified": 1679792424,
|
||||||
"narHash": "sha256-JFzdbtnEaUHMdWi0eXznpxGZO6SRfdBRaOwn4PmDkE0=",
|
"narHash": "sha256-EFXGWV13DcTO/6jaLf/zoAFOsQMCMPE8YMeXpSeUjNY=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "Hyprland",
|
"repo": "Hyprland",
|
||||||
"rev": "cf51a318078c82040eaeab29664bc34144ee1d62",
|
"rev": "3343aac6bf6aa601cb882859edf63a6cb59bb774",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -749,11 +749,11 @@
|
|||||||
"nixpkgs-lib": "nixpkgs-lib"
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1679227749,
|
"lastModified": 1679832509,
|
||||||
"narHash": "sha256-DgN58y1EIRAWhYNL/6rPcvWHnPNBV/ujT6P2dmeRMhU=",
|
"narHash": "sha256-LZecjt8KSlAEVJgaVPcXX6XBTsf/hyYB4AWThsA6f2M=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "lib-aggregate",
|
"repo": "lib-aggregate",
|
||||||
"rev": "69605f77680adc94a11cf270a2485bb3bf4657fa",
|
"rev": "7068824f9ec4364c9375605f5af43793dd2eebee",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -838,11 +838,11 @@
|
|||||||
"nixpkgs-regression": "nixpkgs-regression"
|
"nixpkgs-regression": "nixpkgs-regression"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1679528172,
|
"lastModified": 1679663238,
|
||||||
"narHash": "sha256-pqYxAkFIN+Qb9ksSID+xlEM9ljrSiwCp4gIzxuTWTFk=",
|
"narHash": "sha256-YfcEwIY5wo60Pmn7FkEfUcmoEqtQslyX8Le1Mi6L/vA=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nix",
|
"repo": "nix",
|
||||||
"rev": "e5146a6a505003f16b40160486c21a70204480a2",
|
"rev": "e00abd3f566b16bb107d513925cf33b40cca35f4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -958,11 +958,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1679447549,
|
"lastModified": 1679793477,
|
||||||
"narHash": "sha256-x4ZCisaKqkxfZ5B96hEs4wD0OaAV0ueR1HTYV+hMC+c=",
|
"narHash": "sha256-yFXzazCPsTGIlCx5K7MMAki6LO6420uSIOBAveKHs7k=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nix-vscode-extensions",
|
"repo": "nix-vscode-extensions",
|
||||||
"rev": "47112e20335e6e8330dabc99e4d25bd4c2aeccee",
|
"rev": "e48d195cc011edfde6cbe9b0ba4746842a434e8f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1040,11 +1040,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-lib": {
|
"nixpkgs-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1679187309,
|
"lastModified": 1679791877,
|
||||||
"narHash": "sha256-H8udmkg5wppL11d/05MMzOMryiYvc403axjDNZy1/TQ=",
|
"narHash": "sha256-tTV1Mf0hPWIMtqyU16Kd2JUBDWvfHlDC9pF57vcbgpQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixpkgs.lib",
|
"repo": "nixpkgs.lib",
|
||||||
"rev": "44214417fe4595438b31bdb9469be92536a61455",
|
"rev": "cc060ddbf652a532b54057081d5abd6144d01971",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1073,11 +1073,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-master": {
|
"nixpkgs-master": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1679526881,
|
"lastModified": 1679866589,
|
||||||
"narHash": "sha256-dcx33Ia9XjUGk8McxJ6H6O0zCOczpO8MRpFGVmK/Vg4=",
|
"narHash": "sha256-igT2Idxfz8VcpXzYLa6kjMXrJCWDn1w3VfCUSqeC0MM=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "49ca35cf163026c3cf91ee1d1e363476f6b5aa7f",
|
"rev": "64ccc2dccc16cbc7f8a955fe9812a72efbbdfecf",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1129,11 +1129,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1679405949,
|
"lastModified": 1679865057,
|
||||||
"narHash": "sha256-dTFSHPV6OwqldEtTMgTsesCbr7DcBxbMLTB7IEOHWRU=",
|
"narHash": "sha256-67JQKnO7ixAxBWpL5h3HMDWWSz06eqwlzbFmFdSSxEc=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixpkgs-wayland",
|
"repo": "nixpkgs-wayland",
|
||||||
"rev": "46bf400d1a04f089d9d73d5ef43e621b7f4eb881",
|
"rev": "9b7ecd63e27a56a3e434dcea01b8e62bd5792774",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1192,11 +1192,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1679262748,
|
"lastModified": 1679705136,
|
||||||
"narHash": "sha256-DQCrrAFrkxijC6haUzOC5ZoFqpcv/tg2WxnyW3np1Cc=",
|
"narHash": "sha256-MDlZUR7wJ3PlPtqwwoGQr3euNOe0vdSSteVVOef7tBY=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "60c1d71f2ba4c80178ec84523c2ca0801522e0a6",
|
"rev": "8f40f2f90b9c9032d1b824442cfbbe0dbabd0dbd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1256,11 +1256,11 @@
|
|||||||
},
|
},
|
||||||
"nur": {
|
"nur": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1679525154,
|
"lastModified": 1679863610,
|
||||||
"narHash": "sha256-Afqsg/fRFQoR/CIRqBnu8JdsIjQcWNmGfzO/NOmS/Zc=",
|
"narHash": "sha256-XeBBouFuQ5pgp0C6C7ZEu5ZAGeYQ/cVDSQQIUWFDlOA=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "d4906c2ed98762a275cb7edb800c950ba2f46ce5",
|
"rev": "c921aa621201227946ba88caf73757864f1b22d7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1350,11 +1350,11 @@
|
|||||||
"pre-commit-hooks": "pre-commit-hooks"
|
"pre-commit-hooks": "pre-commit-hooks"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1679341087,
|
"lastModified": 1679794178,
|
||||||
"narHash": "sha256-brszjT9kFsQw1X/aGubd+T6Kw0ESHSevFe8NxihiIeE=",
|
"narHash": "sha256-R4eYiH5+6jiBZpJ+dR3NsvrJrmYxypDYfYdi6u9hi7M=",
|
||||||
"owner": "AtaraxiaSjel",
|
"owner": "AtaraxiaSjel",
|
||||||
"repo": "PrismLauncher",
|
"repo": "PrismLauncher",
|
||||||
"rev": "e004f55e0b694c56a987185e42ce4dc94863e052",
|
"rev": "7e1010f80dcb3e54f8e77ca80fbf2b89b8f6f987",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -1456,11 +1456,11 @@
|
|||||||
"rycee": {
|
"rycee": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1679524810,
|
"lastModified": 1679757179,
|
||||||
"narHash": "sha256-CCcF3CzPOnQ70aA0HEvRdyomCBMKrJbN7j7C44iVHj4=",
|
"narHash": "sha256-7ztq5VWSyQcRHHXu6OkvZTUnD7e2m1UfrnxgCv9lClo=",
|
||||||
"owner": "rycee",
|
"owner": "rycee",
|
||||||
"repo": "nur-expressions",
|
"repo": "nur-expressions",
|
||||||
"rev": "9d83d8f9f8060fff7af736b707a59801ef0fb657",
|
"rev": "37fc1f4c3004bcc7c9da02c0a2b32ba1e2d84ee4",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -22,45 +22,40 @@ in {
|
|||||||
loader = {
|
loader = {
|
||||||
grub = {
|
grub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
device = "nodev";
|
|
||||||
version = 2;
|
version = 2;
|
||||||
|
device = "nodev";
|
||||||
|
copyKernels = true;
|
||||||
efiSupport = true;
|
efiSupport = true;
|
||||||
enableCryptodisk = true;
|
enableCryptodisk = true;
|
||||||
|
useOSProber = false;
|
||||||
zfsSupport = true;
|
zfsSupport = true;
|
||||||
# efiInstallAsRemovable = true;
|
# efiInstallAsRemovable = true;
|
||||||
copyKernels = true;
|
# theme = pkgs.;
|
||||||
};
|
|
||||||
systemd-boot = {
|
|
||||||
enable = lib.mkForce false;
|
|
||||||
editor = false;
|
|
||||||
configurationLimit = 10;
|
|
||||||
# graceful = true;
|
|
||||||
};
|
};
|
||||||
|
systemd-boot.enable = lib.mkForce false;
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
efi.efiSysMountPoint = "/efi";
|
efi.efiSysMountPoint = "/efi";
|
||||||
generationsDir.copyKernels = true;
|
generationsDir.copyKernels = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# binfmt.emulatedSystems = [ "aarch64-linux" ];
|
binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||||
# kernelPackages = lib.mkForce pkgs.linuxPackages_lqx;
|
kernelPackages = lib.mkForce pkgs.linuxPackages_lqx;
|
||||||
kernelPackages = lib.mkForce config.boot.zfs.package.latestCompatibleLinuxPackages;
|
# kernelPackages = lib.mkForce config.boot.zfs.package.latestCompatibleLinuxPackages;
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
"zfs.metaslab_lba_weighting_enabled=0"
|
"zfs.metaslab_lba_weighting_enabled=0"
|
||||||
"zfs.zfs_arc_max=${zfs_arc_max}"
|
"zfs.zfs_arc_max=${zfs_arc_max}"
|
||||||
];
|
];
|
||||||
tmpOnTmpfs = true;
|
tmpOnTmpfs = true;
|
||||||
tmpOnTmpfsSize = "32G";
|
tmpOnTmpfsSize = "32G";
|
||||||
|
|
||||||
# zfs.extraPools = [ "rpool" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
persist = {
|
persist = {
|
||||||
enable = true;
|
enable = true;
|
||||||
cache.clean.enable = false;
|
cache.clean.enable = false;
|
||||||
state.files = [
|
# state.files = [
|
||||||
# "/etc/machine-id"
|
# "/etc/machine-id"
|
||||||
"/etc/NIXOS"
|
# "/etc/NIXOS"
|
||||||
];
|
# ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/home".neededForBoot = true;
|
fileSystems."/home".neededForBoot = true;
|
||||||
|
@ -34,8 +34,6 @@
|
|||||||
deviceSpecific.isGaming = true;
|
deviceSpecific.isGaming = true;
|
||||||
deviceSpecific.enableVirtualisation = true;
|
deviceSpecific.enableVirtualisation = true;
|
||||||
deviceSpecific.vpn.mullvad.enable = true;
|
deviceSpecific.vpn.mullvad.enable = true;
|
||||||
|
|
||||||
hardware.video.hidpi.enable = lib.mkForce false;
|
|
||||||
# hardware.firmware = [ pkgs.rtl8761b-firmware ];
|
# hardware.firmware = [ pkgs.rtl8761b-firmware ];
|
||||||
|
|
||||||
# networking.firewall.allowedTCPPorts = [ 52736 ];
|
# networking.firewall.allowedTCPPorts = [ 52736 ];
|
||||||
|
@ -101,7 +101,6 @@
|
|||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
# high-resolution display
|
# high-resolution display
|
||||||
hardware.video.hidpi.enable = lib.mkDefault true;
|
|
||||||
networking.hostId = "0c00ab80";
|
networking.hostId = "0c00ab80";
|
||||||
boot.zfs.devNodes = "/dev/disk/by-id";
|
boot.zfs.devNodes = "/dev/disk/by-id";
|
||||||
boot.supportedFilesystems = [ "zfs" ];
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
|
@ -153,7 +153,7 @@ in {
|
|||||||
'';
|
'';
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
bat podman-compose micro bottom nix-index-update
|
bat podman-compose micro bottom nix-index-update
|
||||||
pwgen comma
|
pwgen comma kitty
|
||||||
];
|
];
|
||||||
xdg.mime.enable = false;
|
xdg.mime.enable = false;
|
||||||
home.stateVersion = "22.11";
|
home.stateVersion = "22.11";
|
||||||
|
@ -6,10 +6,10 @@ index 1464bd4..ad21483 100644
|
|||||||
};
|
};
|
||||||
# ./update-zen.py lqx
|
# ./update-zen.py lqx
|
||||||
lqxVariant = {
|
lqxVariant = {
|
||||||
- version = "6.2.6"; #lqx
|
- version = "6.2.7"; #lqx
|
||||||
+ version = "6.1.18"; #lqx
|
+ version = "6.1.18"; #lqx
|
||||||
suffix = "lqx1"; #lqx
|
suffix = "lqx1"; #lqx
|
||||||
- sha256 = "1b454badr366pbxiyz7h2n47405wy5pa35rdkk1is8q574yf6scy"; #lqx
|
- sha256 = "0dk79cglqrbsmlz9vimd714km5v717r1066r4bas20r3gi0zlzhi"; #lqx
|
||||||
+ sha256 = "1gyjy01ys74apa65abgvxcj0y51vf5ixampyj3jd8lxzn4vvkih6"; #lqx
|
+ sha256 = "1gyjy01ys74apa65abgvxcj0y51vf5ixampyj3jd8lxzn4vvkih6"; #lqx
|
||||||
isLqx = true;
|
isLqx = true;
|
||||||
};
|
};
|
||||||
|
@ -37,6 +37,7 @@ with config.deviceSpecific; {
|
|||||||
# "webcord.cachix.org-1:l555jqOZGHd2C9+vS8ccdh8FhqnGe8L78QrHNn+EFEs="
|
# "webcord.cachix.org-1:l555jqOZGHd2C9+vS8ccdh8FhqnGe8L78QrHNn+EFEs="
|
||||||
];
|
];
|
||||||
trusted-users = [ "root" config.mainuser "@wheel" ];
|
trusted-users = [ "root" config.mainuser "@wheel" ];
|
||||||
|
use-xdg-base-directories = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
buildMachines = [
|
buildMachines = [
|
||||||
|
@ -1,42 +0,0 @@
|
|||||||
diff --git a/src/libstore/profiles.cc b/src/libstore/profiles.cc
|
|
||||||
index b202351ce..944a90702 100644
|
|
||||||
--- a/src/libstore/profiles.cc
|
|
||||||
+++ b/src/libstore/profiles.cc
|
|
||||||
@@ -292,13 +292,6 @@ Path getDefaultProfile()
|
|
||||||
{
|
|
||||||
Path profileLink = getHome() + "/.nix-profile";
|
|
||||||
try {
|
|
||||||
- auto profile =
|
|
||||||
- getuid() == 0
|
|
||||||
- ? settings.nixStateDir + "/profiles/default"
|
|
||||||
- : profilesDir() + "/profile";
|
|
||||||
- if (!pathExists(profileLink)) {
|
|
||||||
- replaceSymlink(profile, profileLink);
|
|
||||||
- }
|
|
||||||
return absPath(readLink(profileLink), dirOf(profileLink));
|
|
||||||
} catch (Error &) {
|
|
||||||
return profileLink;
|
|
||||||
diff --git a/src/nix-env/nix-env.cc b/src/nix-env/nix-env.cc
|
|
||||||
index 406e548c0..e9004efee 100644
|
|
||||||
--- a/src/nix-env/nix-env.cc
|
|
||||||
+++ b/src/nix-env/nix-env.cc
|
|
||||||
@@ -1396,19 +1396,6 @@ static int main_nix_env(int argc, char * * argv)
|
|
||||||
globals.instSource.nixExprPath = getHome() + "/.nix-defexpr";
|
|
||||||
globals.instSource.systemFilter = "*";
|
|
||||||
|
|
||||||
- if (!pathExists(globals.instSource.nixExprPath)) {
|
|
||||||
- try {
|
|
||||||
- createDirs(globals.instSource.nixExprPath);
|
|
||||||
- replaceSymlink(
|
|
||||||
- fmt("%s/profiles/per-user/%s/channels", settings.nixStateDir, getUserName()),
|
|
||||||
- globals.instSource.nixExprPath + "/channels");
|
|
||||||
- if (getuid() != 0)
|
|
||||||
- replaceSymlink(
|
|
||||||
- fmt("%s/profiles/per-user/root/channels", settings.nixStateDir),
|
|
||||||
- globals.instSource.nixExprPath + "/channels_root");
|
|
||||||
- } catch (Error &) { }
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
globals.dryRun = false;
|
|
||||||
globals.preserveInstalled = false;
|
|
||||||
globals.removeAll = false;
|
|
@ -62,7 +62,7 @@ with lib; {
|
|||||||
|
|
||||||
nix = inputs.nix.packages.${system}.default.overrideAttrs (oa: {
|
nix = inputs.nix.packages.${system}.default.overrideAttrs (oa: {
|
||||||
doInstallCheck = false;
|
doInstallCheck = false;
|
||||||
patches = [ ./nix/nix.patch ./nix/doas.patch ] ++ oa.patches or [ ];
|
patches = [ ./nix/doas.patch ] ++ oa.patches or [ ];
|
||||||
});
|
});
|
||||||
|
|
||||||
nix-direnv = inputs.nix-direnv.packages.${system}.default.override { pkgs = final; };
|
nix-direnv = inputs.nix-direnv.packages.${system}.default.override { pkgs = final; };
|
||||||
|
@ -19,8 +19,8 @@ in stdenv.mkDerivation {
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
repo = "waydroid_script";
|
repo = "waydroid_script";
|
||||||
owner = "casualsnek";
|
owner = "casualsnek";
|
||||||
rev = "2f4f056fb143e393756952ea74fe4b6c85a35cc1";
|
rev = "6c78b793c8405874b4be5b46527f81bca3f14c08";
|
||||||
hash = "sha256-dYR22NtqHZ7Px4Q+oVEUw0Ke5+hOJSgwLEuTmpkM9T8=";
|
hash = "sha256-Wkbm3/PihXCrGCMrRTfBM/OA1gXwafXlW5m7fvkOPOU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeBinaryWrapper ];
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
||||||
|
@ -108,6 +108,4 @@ with config.deviceSpecific; {
|
|||||||
# };
|
# };
|
||||||
|
|
||||||
services.upower.enable = true;
|
services.upower.enable = true;
|
||||||
|
|
||||||
systemd.services.systemd-udev-settle.enable = false;
|
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
let
|
let
|
||||||
thm = config.lib.base16.theme;
|
thm = config.lib.base16.theme;
|
||||||
in {
|
in {
|
||||||
|
environment.sessionVariables = {
|
||||||
|
XCURSOR_PATH = lib.mkForce "/home/${config.mainuser}/.icons";
|
||||||
|
};
|
||||||
|
|
||||||
home-manager.users.${config.mainuser} = {
|
home-manager.users.${config.mainuser} = {
|
||||||
home.pointerCursor = {
|
home.pointerCursor = {
|
||||||
package = thm.cursorPackage;
|
package = thm.cursorPackage;
|
||||||
|
@ -1,6 +1,14 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
with config.deviceSpecific; {
|
with config.deviceSpecific; {
|
||||||
i18n.defaultLocale = "en_GB.UTF-8";
|
i18n.defaultLocale = "en_GB.UTF-8";
|
||||||
|
i18n.extraLocaleSettings = {
|
||||||
|
LANGUAGE = "en_GB.UTF-8";
|
||||||
|
LC_ALL = "en_GB.UTF-8";
|
||||||
|
LC_TIME = "en_GB.UTF-8";
|
||||||
|
LC_ADDRESS = "ru_RU.UTF-8";
|
||||||
|
LC_MONETARY = "ru_RU.UTF-8";
|
||||||
|
LC_PAPER = "ru_RU.UTF-8";
|
||||||
|
};
|
||||||
|
|
||||||
console.font = "cyr-sun16";
|
console.font = "cyr-sun16";
|
||||||
# console.keyMap = "ruwin_cplk-UTF-8";
|
# console.keyMap = "ruwin_cplk-UTF-8";
|
||||||
@ -8,7 +16,8 @@ with config.deviceSpecific; {
|
|||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
XKB_DEFAULT_LAYOUT = "us,ru";
|
XKB_DEFAULT_LAYOUT = "us,ru";
|
||||||
XKB_DEFAULT_OPTIONS = "grp:win_space_toggle";
|
XKB_DEFAULT_OPTIONS = "grp:win_space_toggle";
|
||||||
LANG = lib.mkForce "en_GB.UTF-8";
|
LANGUAGE = "en_GB.UTF-8";
|
||||||
|
LC_ALL = "en_GB.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
time.timeZone = "Europe/Moscow";
|
time.timeZone = "Europe/Moscow";
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
{ pkgs, config, ... }: {
|
{ pkgs, config, ... }: {
|
||||||
home-manager.users.${config.mainuser} = {
|
home-manager.users.${config.mainuser} = {
|
||||||
systemd.user.services.mako = {
|
systemd.user.services.mako = {
|
||||||
Service = { ExecStart = "${pkgs.mako}/bin/mako"; };
|
Service = {
|
||||||
|
ExecStart = "${pkgs.mako}/bin/mako";
|
||||||
|
Environment =
|
||||||
|
[ "PATH=${pkgs.lib.makeBinPath [ pkgs.bash pkgs.mpv ]}" ];
|
||||||
|
};
|
||||||
Install = {
|
Install = {
|
||||||
After = [ "hyprland-session.target" ];
|
After = [ "hyprland-session.target" ];
|
||||||
WantedBy = [ "hyprland-session.target" ];
|
WantedBy = [ "hyprland-session.target" ];
|
||||||
@ -21,6 +25,30 @@
|
|||||||
progressColor = "over #${theme.base0B-hex}";
|
progressColor = "over #${theme.base0B-hex}";
|
||||||
iconPath = "${theme.iconPackage}/share/icons/${theme.iconTheme}";
|
iconPath = "${theme.iconPackage}/share/icons/${theme.iconTheme}";
|
||||||
maxIconSize = 24;
|
maxIconSize = 24;
|
||||||
|
# extraConfig = let
|
||||||
|
# play = sound:
|
||||||
|
# "mpv ${pkgs.sound-theme-freedesktop}/share/sounds/freedesktop/stereo/${sound}.oga";
|
||||||
|
# in ''
|
||||||
|
# on-notify=exec ${play "message"}
|
||||||
|
# [app-name=yubikey-touch-detector]
|
||||||
|
# on-notify=exec ${play "service-login"}
|
||||||
|
# [app-name=command_complete summary~="✘.*"]
|
||||||
|
# on-notify=exec ${play "dialog-warning"}
|
||||||
|
# [app-name=command_complete summary~="✓.*"]
|
||||||
|
# on-notify=exec ${play "bell"}
|
||||||
|
# [category=osd]
|
||||||
|
# on-notify=none
|
||||||
|
# [mode=do-not-disturb]
|
||||||
|
# invisible=1
|
||||||
|
# [mode=do-not-disturb summary="Do not disturb: on"]
|
||||||
|
# invisible=0
|
||||||
|
# [mode=concentrate]
|
||||||
|
# invisible=1
|
||||||
|
# [mode=concentrate urgency=critical]
|
||||||
|
# invisible=0
|
||||||
|
# [mode=concentrate summary="Concentrate mode: on"]
|
||||||
|
# invisible=0
|
||||||
|
# '';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
containers.tor = {
|
containers.tor = {
|
||||||
mullvadExclude = config.deviceSpecific.vpn.mullvad.enable;
|
mullvadExclude = config.deviceSpecific.vpn.mullvad.enable;
|
||||||
autoStart = true;
|
autoStart = false;
|
||||||
ephemeral = true;
|
ephemeral = true;
|
||||||
# extraFlags = [ "-U" ]; # unprivileged
|
# extraFlags = [ "-U" ]; # unprivileged
|
||||||
hostAddress = "192.168.1.10";
|
hostAddress = "192.168.1.10";
|
||||||
@ -78,4 +78,4 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
networking.nat.internalInterfaces = [ "ve-tor" ];
|
networking.nat.internalInterfaces = [ "ve-tor" ];
|
||||||
}
|
}
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
home-manager.users.${config.mainuser} = {
|
home-manager.users.${config.mainuser} = {
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
xdg.userDirs.enable = true;
|
xdg.userDirs.enable = true;
|
||||||
xdg.systemDirs.data = [
|
# xdg.systemDirs.data = [
|
||||||
"${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}"
|
# "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}"
|
||||||
"${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}"
|
# "${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}"
|
||||||
];
|
# ];
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
|
@ -11,7 +11,8 @@ if __name__ == "__main__":
|
|||||||
for line in lines:
|
for line in lines:
|
||||||
if "kernel.kernelOlder" in line:
|
if "kernel.kernelOlder" in line:
|
||||||
results.append(line)
|
results.append(line)
|
||||||
line = results[-2].strip()
|
break
|
||||||
|
line = results[0].strip()
|
||||||
pattern = re.compile(r"\d\.\d{1,2}")
|
pattern = re.compile(r"\d\.\d{1,2}")
|
||||||
version = pattern.search(line).group(0)
|
version = pattern.search(line).group(0)
|
||||||
major, minor = version.split('.')
|
major, minor = version.split('.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user