fix misc config issues
This commit is contained in:
parent
d640002787
commit
4c9f67e388
|
@ -1,22 +1,24 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, lib, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
|
./sddm.nix
|
||||||
./plasma-packages.nix
|
./plasma-packages.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable Xorg/Plasma5
|
# Enable Xorg/Plasma5
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
displayManager.sddm.enable = true;
|
|
||||||
desktopManager.plasma5.enable = true;
|
desktopManager.plasma5.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.displayManager = {
|
||||||
|
defaultSession = "plasma";
|
||||||
|
|
||||||
|
# Disable Wayland
|
||||||
|
sddm.wayland.enable = lib.mkForce false;
|
||||||
|
};
|
||||||
|
|
||||||
# Use ksshaskpass to access stored secrets
|
# Use ksshaskpass to access stored secrets
|
||||||
environment.sessionVariables = rec {
|
environment.sessionVariables = rec {
|
||||||
GIT_ASKPASS = "ksshaskpass";
|
GIT_ASKPASS = "ksshaskpass";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.kdeconnect = {
|
|
||||||
enable = false;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,25 +1,14 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
|
./sddm.nix
|
||||||
./plasma-packages.nix
|
./plasma-packages.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
services.displayManager = {
|
services.displayManager.defaultSession = "plasma";
|
||||||
sddm = {
|
|
||||||
enable = true;
|
|
||||||
wayland.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
defaultSession = "plasma";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.desktopManager.plasma6.enable = true;
|
services.desktopManager.plasma6.enable = true;
|
||||||
|
|
||||||
# Use ksshaskpass to access stored secrets
|
# Use ksshaskpass to access stored secrets
|
||||||
environment.sessionVariables = rec {
|
environment.sessionVariables = rec {
|
||||||
GIT_ASKPASS = "ksshaskpass";
|
GIT_ASKPASS = "ksshaskpass";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.kdeconnect = {
|
|
||||||
enable = false;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultSession = "plasma";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, lib, ...}: {
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = lib.mkForce pkgs.linuxPackages_latest;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
35
flake.lock
35
flake.lock
|
@ -18,22 +18,23 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home-manager": {
|
"home-manager-stable": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"unstable"
|
"stable"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1716930911,
|
"lastModified": 1716736833,
|
||||||
"narHash": "sha256-t4HT5j3Jy7skRB5PINnxcEBCkgE89rGBpwTI7YS4Ffo=",
|
"narHash": "sha256-rNObca6dm7Qs524O4st8VJH6pZ/Xe1gxl+Rx6mcWYo0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "a9b36cbe9292a649222b89fdb9ae9907e9c74086",
|
"rev": "a631666f5ec18271e86a5cde998cba68c33d9ac6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
|
"ref": "release-24.05",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
@ -72,10 +73,9 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager-stable": "home-manager-stable",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"stable": "stable",
|
"stable": "stable",
|
||||||
"stable-home-manager": "stable-home-manager",
|
|
||||||
"tildefriends": "tildefriends",
|
"tildefriends": "tildefriends",
|
||||||
"unstable": "unstable"
|
"unstable": "unstable"
|
||||||
}
|
}
|
||||||
|
@ -96,27 +96,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"stable-home-manager": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"stable"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1716736833,
|
|
||||||
"narHash": "sha256-rNObca6dm7Qs524O4st8VJH6pZ/Xe1gxl+Rx6mcWYo0=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"rev": "a631666f5ec18271e86a5cde998cba68c33d9ac6",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"ref": "release-24.05",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems": {
|
"systems": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
|
|
14
flake.nix
14
flake.nix
|
@ -7,12 +7,12 @@
|
||||||
stable.url = "github:nixos/nixpkgs/nixos-24.05";
|
stable.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||||
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
home-manager = {
|
# home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
# url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "unstable";
|
# inputs.nixpkgs.follows = "unstable";
|
||||||
};
|
# };
|
||||||
|
|
||||||
stable-home-manager = {
|
home-manager-stable = {
|
||||||
url = "github:nix-community/home-manager/release-24.05";
|
url = "github:nix-community/home-manager/release-24.05";
|
||||||
inputs.nixpkgs.follows = "stable";
|
inputs.nixpkgs.follows = "stable";
|
||||||
};
|
};
|
||||||
|
@ -28,8 +28,8 @@
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
stable,
|
stable,
|
||||||
unstable,
|
unstable,
|
||||||
home-manager,
|
# home-manager,
|
||||||
stable-home-manager,
|
home-manager-stable,
|
||||||
# nixos-conf-editor,
|
# nixos-conf-editor,
|
||||||
# nix-software-center,
|
# nix-software-center,
|
||||||
tildefriends,
|
tildefriends,
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.stable-home-manager.nixosModules.home-manager
|
inputs.home-manager-stable.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
users.users.user = {
|
users.users.user = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager-stable.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
users.users.user = {
|
users.users.user = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.stable-home-manager.nixosModules.home-manager
|
inputs.home-manager-stable.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
users.users.tasia = {
|
users.users.tasia = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager-stable.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
users.users.user = {
|
users.users.user = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|
|
@ -45,7 +45,7 @@ in {
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
dataDir = lib.mkForce "/home/user";
|
dataDir = lib.mkForce "/home/user";
|
||||||
configDir = lib.mkForce "/data/sync/configuration/";
|
configDir = lib.mkForce "/data/sync/configuration/";
|
||||||
guiAddess = "0.0.0.0:8384";
|
guiAddress = "0.0.0.0:8384";
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
|
@ -20,8 +20,8 @@ in {
|
||||||
../../common/hardware/btrfs.nix
|
../../common/hardware/btrfs.nix
|
||||||
../../common/hardware/latest-kernel.nix
|
../../common/hardware/latest-kernel.nix
|
||||||
|
|
||||||
../../common/de/plasma6.nix
|
../../common/components/de/plasma6.nix
|
||||||
# ../../common/de/hyprland.nix
|
# ../../common/components/de/hyprland.nix
|
||||||
|
|
||||||
../../common/services/syncthing.nix
|
../../common/services/syncthing.nix
|
||||||
../../common/services/adguardhome.nix
|
../../common/services/adguardhome.nix
|
||||||
|
@ -38,7 +38,7 @@ in {
|
||||||
sshKeys.tasia.yaseen
|
sshKeys.tasia.yaseen
|
||||||
];
|
];
|
||||||
|
|
||||||
services.btrfs.autoScrub.fileSystems = lb.mkForce ["/" "/data"];
|
services.btrfs.autoScrub.fileSystems = lib.mkForce ["/" "/data"];
|
||||||
|
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
dataDir = lib.mkForce "/home/user/Sync/Phone/";
|
dataDir = lib.mkForce "/home/user/Sync/Phone/";
|
||||||
|
|
Loading…
Reference in a new issue