removing some dead code and some fixes

This commit is contained in:
2025-07-19 19:33:11 +02:00
parent a9dcd029f2
commit 198629b98e
5 changed files with 13 additions and 21 deletions

View File

@@ -36,8 +36,6 @@ in {
./settings.nix
];
time.hardwareClockInLocalTime = true;
networking.hostName = "kima";
environment.variables = {
@@ -45,13 +43,6 @@ in {
GEMINI_API_KEY = config.age.secrets.gcapi.path;
};
# programs.hyprland.settings = {
# monitor = [
# "DP-3,2560x1440@240,0x0,1,transform,0,bitdepth,10"
# "DP-4,1920x1080@60,auto,1,transform,3"
# ];
# };
# # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = lib.mkDefault "23.11";
}

View File

@@ -46,6 +46,13 @@ in {
domain = "cnst.dev";
};
swapDevices = [
{
device = "/var/lib/swapfile";
size = 8 * 1024;
}
];
environment.variables.NH_FLAKE = "/home/cnst/.nix-config";
# # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion

View File

@@ -9,7 +9,7 @@
cfg = config.home.services.nix-index;
in {
options = {
home.services.nix-index.enable = mkEnableOption "Enables dunst";
home.services.nix-index.enable = mkEnableOption "Enables nix-index";
};
config = mkIf cfg.enable {
programs.nix-index = {
@@ -29,11 +29,10 @@ in {
coreutils
];
text = ''
mkdir -p ~/.cache/nix-index
cd ~/.cache/nix-index
name="index-${pkgs.stdenv.system}"
wget -N "https://github.com/nix-community/nix-index-database/releases/latest/download/$name"
ln -sf "$name" "files"
filename="index-$(uname -m | sed 's/^arm64$/aarch64/')-$(uname | tr A-Z a-z)"
mkdir -p ~/.cache/nix-index && cd ~/.cache/nix-index
wget -q -N https://github.com/nix-community/nix-index-database/releases/latest/download/$filename
ln -f $filename files
'';
}
);

View File

@@ -1,10 +1,5 @@
{
nixpkgs = {
overlays = [
# (_: prev: {
# python312 = prev.python312.override {packageOverrides = _: pysuper: {nose = pysuper.pynose;};};
# })
];
config = {
allowUnfree = true;
input-fonts.acceptLicense = true;

View File

@@ -141,7 +141,7 @@
enable = false;
};
syncthing = {
enable = true;
enable = false;
};
udiskie = {
enable = false;