Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
yousiki committed Mar 16, 2024
1 parent 458af55 commit 90d442f
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 97 deletions.
3 changes: 0 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
allowUnfree = true;
allowBroken = false;
allowUnsupported = false;
# permittedInsecurePackages = [
# "nix-2.15.3"
# ];
};
inherit self inputs;
inherit (self) outputs;
Expand Down
84 changes: 3 additions & 81 deletions src/configurations/nixos/hakase/_configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
# };

# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true;
services.desktopManager.plasma6.enable = true;
# services.xserver.enable = true;
# services.xserver.displayManager.sddm.enable = true;
# services.desktopManager.plasma6.enable = true;

# Configure keymap in X11
# services.xserver.xkb.layout = "us";
Expand Down Expand Up @@ -69,32 +69,6 @@

programs.zsh.enable = true;

# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
alejandra
curl
duf
eza
fd
fzf
gdu
gh
git
helix
home-manager
htop
jq
man
neofetch
nodejs
nvfetcher
ripgrep
rsync
vim
wget
zellij
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
Expand Down Expand Up @@ -137,56 +111,4 @@
#
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "24.05"; # Did you read the comment?

nix = {
settings = rec {
# Nix automatically detects files in the store that have identical contents, and replaces them with hard links to a single copy.
auto-optimise-store = true;
# Nix will instruct remote build machines to use their own binary substitutes if available.
builders-use-substitutes = true;
# Experimental nix features.
experimental-features = ["flakes" "nix-command"];
# Nix will fall back to building from source if a binary substitute fails.
fallback = true;
# The garbage collector will keep the derivations from which non-garbage store paths were built.
keep-derivations = true;
# The garbage collector will keep the outputs of non-garbage derivations.
keep-outputs = true;
# Builds will be performed in a sandboxed environment.
sandbox = pkgs.stdenv.isLinux;
# These users will have additional rights when connecting to the Nix daemon.
trusted-users = ["root" "@wheel" "@admin"];
# Never warn about dirty Git/Mercurial trees.
warn-dirty = false;
# Substituters.
substituters = [
"https://cache.garnix.io?priority=50"
"https://cache.nixos.org?priority=45"
"https://hyprland.cachix.org?priority=40"
"https://mirror.sjtu.edu.cn/nix-channels/store?priority=25"
"https://mirrors.cqupt.edu.cn/nix-channels/store?priority=35"
"https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store?priority=30"
"https://mirrors.ustc.edu.cn/nix-channels/store?priority=35"
"https://nichijou.cachix.org?priority=40"
"https://nix-community.cachix.org?priority=40"
"https://nixpkgs-wayland.cachix.org?priority=40"
"https://numtide.cachix.org?priority=40"
];
# Trusted substituters
trusted-substituters = substituters;
# Trusted public keys
trusted-public-keys = [
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"nichijou.cachix.org-1:rbaTU9nLgVW9BK/HSV41vsag6A7/A/caBpcX+cR/6Ps="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
"numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
];
};

# Garbage collector
gc.automatic = true;
};
}
26 changes: 13 additions & 13 deletions src/configurations/nixos/mai/_configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
# time.timeZone = "Europe/Amsterdam";

# Configure network proxy if necessary
networking.proxy.default = "http://yousiki:yangsiqi@192.168.31.34:7890";
networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain,edu.cn";
networking.proxy.default = "http://yousiki:yangsiqi@satoshi.mck.cn.yousiki.top:7890";
networking.proxy.noProxy = "127.0.0.1,localhost,cn.yousiki.top,edu.cn";

# Select internationalisation properties.
# i18n.defaultLocale = "en_US.UTF-8";
Expand All @@ -33,9 +33,9 @@
# };

# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma6.enable = true;
# services.xserver.enable = true;
# services.xserver.displayManager.sddm.enable = true;
# services.xserver.desktopManager.plasma6.enable = true;

# Configure keymap in X11
# services.xserver.xkb.layout = "us";
Expand All @@ -47,14 +47,14 @@
# Enable sound.
# sound.enable = true;
# hardware.pulseaudio.enable = true;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
# security.rtkit.enable = true;
# services.pipewire = {
# enable = true;
# alsa.enable = true;
# alsa.support32Bit = true;
# pulse.enable = true;
# jack.enable = true;
# };

# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
Expand Down
16 changes: 16 additions & 0 deletions src/profiles/nixos/desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@
pkgs,
...
}: {
services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true;
services.desktopManager.plasma6.enable = true;

# sound.enable = true;
# hardware.pulseaudio.enable = true;

security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};

environment.systemPackages = with pkgs; [
_1password-gui
brave
Expand Down

0 comments on commit 90d442f

Please sign in to comment.