This commit is contained in:
Sense T 2023-07-04 16:53:01 +08:00
parent e9c51a6869
commit 23172262c8
17 changed files with 759 additions and 759 deletions

View File

@ -1,5 +1,5 @@
# NixOS configurations file. # NixOS configurations file.
{config, pkgs, lib,...}: { { config, pkgs, lib, ... }: {
system.stateVersion = "23.05"; system.stateVersion = "23.05";
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.

View File

@ -74,11 +74,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1687829761, "lastModified": 1688389917,
"narHash": "sha256-QRe1Y8SS3M4GeC58F/6ajz6V0ZLUVWX3ZAMgov2N3/g=", "narHash": "sha256-RKiK1QeommEsjQ8fLgxt4831x9O6n2gD7wAhVZTrr8M=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9790f3242da2152d5aa1976e3e4b8b414f4dd206", "rev": "aed4b19d312525ae7ca9bceb4e1efe3357d0e2eb",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -36,7 +36,7 @@
}; };
}; };
outputs = {self, nixpkgs, home-manager, nixos-cn, impermanence, ...}: { outputs = { self, nixpkgs, home-manager, nixos-cn, impermanence, ... }: {
nixosConfigurations.gpd = nixpkgs.lib.nixosSystem rec { nixosConfigurations.gpd = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux"; system = "x86_64-linux";
@ -66,7 +66,8 @@
nixos-cn.nixosModules.nixos-cn-registries nixos-cn.nixosModules.nixos-cn-registries
nixos-cn.nixosModules.nixos-cn nixos-cn.nixosModules.nixos-cn
home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users = import ./home; home-manager.users = import ./home;

View File

@ -1,5 +1,5 @@
{pkgs, ...}: { { pkgs, ... }: {
fonts= { fonts = {
fontDir.enable = true; fontDir.enable = true;
fonts = with pkgs;[ fonts = with pkgs;[

View File

@ -1,4 +1,4 @@
{pkgs, ...}: { { pkgs, ... }: {
xdg.portal = { xdg.portal = {
enable = true; enable = true;
#wlr.enable = true; #wlr.enable = true;

View File

@ -1,5 +1,5 @@
{pkgs, ...}: { { pkgs, ... }: {
users= { users = {
mutableUsers = false; mutableUsers = false;
users = { users = {
user = { user = {

View File

@ -4,7 +4,7 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports =[ imports = [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];

View File

@ -23,9 +23,9 @@
scroll-step = 5; scroll-step = 5;
format = "{icon} {volume}%"; format = "{icon} {volume}%";
format-muted = "{icon} --"; format-muted = "{icon} --";
on-click ="wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; # wpctl? on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; # wpctl?
format-icons = { format-icons = {
default = ["" "" ""]; default = [ "" "" "" ];
}; };
}; };
@ -74,7 +74,7 @@
format-charging = " {capacity}%"; format-charging = " {capacity}%";
format-plugged = " {capacity}%"; format-plugged = " {capacity}%";
format-alt = "{time} {icon}"; format-alt = "{time} {icon}";
format-icons = ["" "" "" "" ""]; format-icons = [ "" "" "" "" "" ];
}; };
tray = { tray = {

View File

@ -1,4 +1,4 @@
{pkgs, ...}: { { pkgs, ... }: {
imports = [ imports = [
./home.nix ./home.nix
./programs.nix ./programs.nix

View File

@ -1,4 +1,4 @@
{pkgs, ...}: { { pkgs, ... }: {
home = { home = {
stateVersion = "23.05"; # Static stateVersion = "23.05"; # Static
username = "user"; username = "user";

View File

@ -1,4 +1,4 @@
{pkgs, ...}: { { pkgs, ... }: {
programs = { programs = {
home-manager.enable = true; home-manager.enable = true;
@ -74,9 +74,5 @@
wlogout = { wlogout = {
enable = false; enable = false;
}; };
clipman = {
enable = true;
};
}; };
} }

View File

@ -1,5 +1,7 @@
{ {
services = { services = {
clipman.enable = true;
dunst = { dunst = {
enable = true; enable = true;
settings = { settings = {

View File

@ -2,7 +2,8 @@ let
defaultBrowser = "io.gitlab.librewolf-community.desktop"; defaultBrowser = "io.gitlab.librewolf-community.desktop";
defaultFileManager = "ranger.desktop"; defaultFileManager = "ranger.desktop";
defaultTerminal = "kitty.desktop"; defaultTerminal = "kitty.desktop";
in { in
{
xdg = { xdg = {
enable = true; enable = true;
mimeApps = { mimeApps = {