removing some dead code and some fixes
This commit is contained in:
@@ -36,8 +36,6 @@ in {
|
|||||||
./settings.nix
|
./settings.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
time.hardwareClockInLocalTime = true;
|
|
||||||
|
|
||||||
networking.hostName = "kima";
|
networking.hostName = "kima";
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
@@ -45,13 +43,6 @@ in {
|
|||||||
GEMINI_API_KEY = config.age.secrets.gcapi.path;
|
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
|
# # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
system.stateVersion = lib.mkDefault "23.11";
|
system.stateVersion = lib.mkDefault "23.11";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,6 +46,13 @@ in {
|
|||||||
domain = "cnst.dev";
|
domain = "cnst.dev";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
swapDevices = [
|
||||||
|
{
|
||||||
|
device = "/var/lib/swapfile";
|
||||||
|
size = 8 * 1024;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
environment.variables.NH_FLAKE = "/home/cnst/.nix-config";
|
environment.variables.NH_FLAKE = "/home/cnst/.nix-config";
|
||||||
|
|
||||||
# # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
# # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
cfg = config.home.services.nix-index;
|
cfg = config.home.services.nix-index;
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
home.services.nix-index.enable = mkEnableOption "Enables dunst";
|
home.services.nix-index.enable = mkEnableOption "Enables nix-index";
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.nix-index = {
|
programs.nix-index = {
|
||||||
@@ -29,11 +29,10 @@ in {
|
|||||||
coreutils
|
coreutils
|
||||||
];
|
];
|
||||||
text = ''
|
text = ''
|
||||||
mkdir -p ~/.cache/nix-index
|
filename="index-$(uname -m | sed 's/^arm64$/aarch64/')-$(uname | tr A-Z a-z)"
|
||||||
cd ~/.cache/nix-index
|
mkdir -p ~/.cache/nix-index && cd ~/.cache/nix-index
|
||||||
name="index-${pkgs.stdenv.system}"
|
wget -q -N https://github.com/nix-community/nix-index-database/releases/latest/download/$filename
|
||||||
wget -N "https://github.com/nix-community/nix-index-database/releases/latest/download/$name"
|
ln -f $filename files
|
||||||
ln -sf "$name" "files"
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
{
|
{
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
overlays = [
|
|
||||||
# (_: prev: {
|
|
||||||
# python312 = prev.python312.override {packageOverrides = _: pysuper: {nose = pysuper.pynose;};};
|
|
||||||
# })
|
|
||||||
];
|
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
input-fonts.acceptLicense = true;
|
input-fonts.acceptLicense = true;
|
||||||
|
|||||||
@@ -141,7 +141,7 @@
|
|||||||
enable = false;
|
enable = false;
|
||||||
};
|
};
|
||||||
syncthing = {
|
syncthing = {
|
||||||
enable = true;
|
enable = false;
|
||||||
};
|
};
|
||||||
udiskie = {
|
udiskie = {
|
||||||
enable = false;
|
enable = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user